velaware Posted February 27, 2014 Report Share Posted February 27, 2014 When creating an email template and doing something like this: <table> {% for item in items %} <tr><td>{item.key}</td></tr> {% endfor %} </table> After saving or switching from source to preview, it morphs it to this: {% for item in items %} <table><td><td>{item.key}</td></tr></table> [% endfor %} Quote Link to comment Share on other sites More sharing options...
Paul Posted March 1, 2014 Report Share Posted March 1, 2014 You might have to save and edit in source mode only. We spent a lot of time considering different WYSIWYG editors that are license friendly, and it was the best, but they all seem to have some problems. Quote Link to comment Share on other sites More sharing options...
velaware Posted March 1, 2014 Author Report Share Posted March 1, 2014 You might have to save and edit in source mode only. We spent a lot of time considering different WYSIWYG editors that are license friendly, and it was the best, but they all seem to have some problems. Happens then too. :/ Thought I made it clear but I didn't, my bad. o.O Quote Link to comment Share on other sites More sharing options...
Michael Posted March 1, 2014 Report Share Posted March 1, 2014 Looks fine for me when I try it bud. Quote Link to comment Share on other sites More sharing options...
velaware Posted March 1, 2014 Author Report Share Posted March 1, 2014 Looks fine for me when I try it bud. What did you try, exactly? Quote Link to comment Share on other sites More sharing options...
Michael Posted March 1, 2014 Report Share Posted March 1, 2014 What did you try, exactly? Copied your top code in source and clicked on the source button to show the WYSIWYG tools, then clicked source again. Quote Link to comment Share on other sites More sharing options...
PauloV Posted March 1, 2014 Report Share Posted March 1, 2014 When creating an email template and doing something like this: <table> {% for item in items %} <tr><td>{item.key}</td></tr> {% endfor %} </table> After saving or switching from source to preview, it morphs it to this: {% for item in items %} <table><td><td>{item.key}</td></tr></table> [% endfor %} I have detected the same problem (its a knowing bug from ckeditor), I have a solution implanted in one client that use the same wysiwyg editor (ckeditor), I will post the solution on monday Regards, PV Quote Link to comment Share on other sites More sharing options...
PauloV Posted March 3, 2014 Report Share Posted March 3, 2014 Here you go Solution: Open file: vendors/ckeditor/config.js find on line 8: // Define changes to default configuration here. For example: change to: config.protectedSource.push( /{[\s\S]*?}/g ); // Blesta code // Define changes to default configuration here. For example: Tell me if it worked Regards, PV Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.