velaware Posted February 27, 2014 Report 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 %}
Paul Posted March 1, 2014 Report 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.
velaware Posted March 1, 2014 Author Report Posted March 1, 2014 On 3/1/2014 at 6:29 AM, Paul said: 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
velaware Posted March 1, 2014 Author Report Posted March 1, 2014 On 3/1/2014 at 4:38 PM, CubicWebs said: Looks fine for me when I try it bud. What did you try, exactly?
Michael Posted March 1, 2014 Report Posted March 1, 2014 On 3/1/2014 at 5:54 PM, secforus_ehansen said: 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.
PauloV Posted March 1, 2014 Report Posted March 1, 2014 On 2/27/2014 at 7:51 PM, secforus_ehansen said: 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
PauloV Posted March 3, 2014 Report 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now