Jump to content

Ckeditor Not Playing Nicely With Tags


velaware

Recommended Posts

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 %}

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...