BUG REPORT ckeditor page editor adding unwanted html after save - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: BUG REPORT ckeditor page editor adding unwanted html after save (/showthread.php?tid=7347) |
ckeditor page editor adding unwanted html after save - DonR - 2015-06-17 Hi, When editing a page two scenarios of unwanted code being added after doing an update. This is seen by doing a view Source. 1 - <p> </p> on either 1 or 2 lines 2 - {% home-page-blockquote %} becomes <p>{% home-page-blockquote %}</p> This is the syntax for inserting components in a page using the dynpages plugin. Am inserting the code while in Source mode. GetSimple version is 3.3.5 gsconfig.php settings are: # WYSIWYG Editor Options #define('GSEDITOROPTIONS', ''); define('GSEDITORTOOL',"['Cut','Copy','Paste','PasteFromWord','-','Undo','Redo','Find','Replace','-','SelectAll'], ['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight', 'JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link','Unlink', 'Image', 'RemoveFormat', 'Source'], '/', ['Styles','Format','Font','FontSize'] "); Have installed the GSCkePatch (and verified it is working as now there is syntax coloring) and it did not make a difference Should I use the GetSimple version Stable with CKEditor patched to v4.3.2 (untested) Thank you for your input. RE: ckeditor page editor adding unwanted html after save - shawn_a - 2015-06-17 http://get-simple.info/forums/showthread.php?tid=5118&highlight=entermode This might have something to do with it, i don't remember. entermode RE: ckeditor page editor adding unwanted html after save - DonR - 2015-06-18 (2015-06-17, 08:54:39)shawn_a Wrote: http://get-simple.info/forums/showthread.php?tid=5118&highlight=entermode Thanks for the reply Shawn. Very helpful. Making progress now. This is added to the gsconfig file: define('GSEDITOROPTIONS'," enterMode: CKEDITOR.ENTER_BR, shiftEnterMode : CKEDITOR.ENTER_P "); When I press Enter the editor understands line break. When I press Shift-Enter the editor understands to make a paragraph using <p> ….content….. </p> Still touchy behaviour between the default visual editing mode and the Source editing mode and when the editor knows I'm at the end of my html code/short code and when to resume the page content. The editor has a tendency to add <br /> at the end of my html code/shortcode but playing around should get it satisfactory. Thanks! |