HTML content removed in text editor

Users can paste content from Microsoft Word or HTML source code into the text editor. By default, the Advanced Content Filter in the text editor removes disallowed HTML tags or HTML styling information that's not recognized by the text editor. The most typical issue is that style tags and attributes are removed and default fonts are used instead.

  1. To disable the Advanced Content Filter, open config.js in the <Sage CRM installation folder>\WWWRoot\ckeditor\ directory.
  2. Add the following line to set the allowedContent property to True.
    Copy
    CKEDITOR.editorConfig = function (config) {
        config.toolbar = "Full";
        config.disableNativeSpellChecker = false;
        config.resize_enabled = false;
        config.fillEmptyBlocks = false;
        config.pasteFromWordRemoveFontStyles = false;
        config.pasteFromWordRemoveFontStyles = false;
        // config.extraAllowedContent = 'img(*){*}[*]';
        config.allowedContent = true;
        config.toolbar = [
            { name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Source', '-', 'Preview', 'Print', 'Templates'] },
            { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
            { name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Find', 'Replace', '-', 'SelectAll'] },
            { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
            { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
            { name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', 'Maximize'] },
            '/',
            { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
            { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
            { name: 'colors', items: ['TextColor', 'BGColor'] }
        ];
        config.fontSize_sizes = '8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;16/16pt;18/18pt;20/20pt;22/22pt;24/24pt;26/26pt;28/28pt;36/36pt;48/48pt;72/72pt';
    };
  3. Run iisreset at the command prompt to restart IIS on the Sage CRM server.
  4. Clear the browser cache on all users' machines.