CKEditor comes with a config.js file. In this file, set the config.allowedContent parameter to true .
For instance,
CKEDITOR.editorConfig = function( config ) { config.toolbar_TRiGCustom = [ ['Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','-','Blockquote'], ['FontSize'], ['Undo','Redo'], ['Link','Unlink','Image','Table'], ['NumberedList', 'BulletedList'], ['Source'], ['Maximize'] ]; config.toolbar = 'TRiGCustom'; config.forcePasteAsPlainText = true; config.forceSimpleAmpersand = true; config.resize_enabled = false; config.toolbarCanCollapse = false; config.scayt_autoStartup = true; config.language = 'en'; config.uiColor = '#76BC49'; config.width = '97%'; config.extraPlugins = 'maximize'; config.allowedContent = true; };
I found this solution on Amixa Blog . The blog post seems to be written for a specific CMS called ASPMAKER, and also recommends tweaks for specific ASP files in this CMS, but this change in CKEditor configuration is common and applies to CKEditor wherever you use it. String config.allowedContent = true; - thatβs all you need.
source share