cakephp 2.3 - CKEditor HTML4 validation to support HTML Emails -


several questions in 1 here suspect have same answer.

using ckeditor in cakephp project content being edited make html part of email.

most email applications don't support html net alone true html5.

an example of center text in email paragraph use either <p align=center> or <center></center>

in ckeditor when in source mode editing if <p align=center> , save (or toggle source edit mode) removes align=center because in html5 that's no longer valid.

how can allow in ckeditor?

can enable html4 validation instead of html5?

i have table in template half of edited in field(textbox) called header (the header of email template) , field called footer.

in header want <table><tr><td> in footer want </td></tr></table>

then message content placed in td cell between header , footer.

however ckeditor won't allow me have html tag , not closing tag. ideas on how make happen well?

regards

ian

to change html it's accepted ckeditor, adjust acf settings. simplest way allow everything:

config.allowedcontent = true; 

that won't solve halve tables part.
can try use config.protectedsource, defining rule both opening , closing parts, taking care add there allows target table , not other table might in content.
(of course best solution table outside editor when create mail parts)


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -