tdc666 Posted February 10, 2014 Share Posted February 10, 2014 Is there any way to stop the HTML editor on the CMS pages adding and removing manually inserted markup? When ever you save your HTML, it will automatically add <p>'s and take out markup that it doesn't understand. For example, if you insert an iframe in your CMS page and add the 'seamless' attribute, PrestaShop will strip it out. In other words, is there a way to have a CMS page show what I want it to show? To have it show the HTML I put in there, rather than the hacked up HTML PrestaShop makes from what I put in? Thanks guys. Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 you have to extend tinmyce object and also change validate function you can find here on forums a lot of topics related to extending tinymce http://www.prestashop.com/forums/topic/278022-problem-with-tinymce-editor/ http://www.prestashop.com/forums/topic/193541-limited-tinymce-options-in-cms-page-content/ first two results form google Link to comment Share on other sites More sharing options...
tdc666 Posted February 12, 2014 Author Share Posted February 12, 2014 (edited) thanks, but i have already extended tinymce. for whatever reason, it doesn't effect cms pages, just product pages. i changed the validate thing too, yeah. Edited February 12, 2014 by tdc666 (see edit history) Link to comment Share on other sites More sharing options...
tdc666 Posted February 13, 2014 Author Share Posted February 13, 2014 no help? Link to comment Share on other sites More sharing options...
vekia Posted February 14, 2014 Share Posted February 14, 2014 to tinyMCE object definition add these variables: force_br_newlines : true,force_p_newlines : false, forced_root_block : "" Link to comment Share on other sites More sharing options...
Recommended Posts