Posted on 23/10/2019 09:38:00
For everybody else having these issues, here's a follow up with a solution/workaround to the slow Azure loading of the styles.xml... well, is to not use the styles.xml
I created a new editor config with the "Do not load styles.xml" checkmark on, created a new editor configuration .js-file and put my styles definitions into it.
System/Editor/ckeditor/config/YOURCONFIGNAME.js
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'align' ] },
{ name: 'styles' },
{ name: 'colors' }
];
// Remove some buttons, provided by the standard plugins, which we don't need to have in the Standard(s) toolbar.
config.removeButtons = 'Subscript,Superscript,Table,TextColor,Font,Flash,NewPage,Save';
config.stylesSet = [
{ name: 'Checked List', element: 'ul', attributes: { 'class': 'checked-list' } },
{ name: 'Unchecked List', element: 'ul', attributes: { 'class': 'unchecked-list' } },
{ name: 'Checked Item', element: 'li', attributes: { 'class': 'checked-item' } },
{ name: 'Unchecked Item', element: 'li', attributes: { 'class': 'unchecked-item' } }
];
// config.stylesSet = 'my_styles';
// config.stylesSet = 'my_styles:/Admin/Editor/ckeditor/styles.aspx?url='+encodeURIComponent('Admin/Public/EditorXMLConfig.aspx')+'&name=my_styles';
// config.stylesSet = 'my_styles:/styles.js';
// config.contentsCss = '/Files/System/Editor/ckeditor/styles.css';
// config.extraPlugins = 'stylesheetparser';
config.filebrowserBrowseUrl = '/Admin/Editor/ckeditor/browser.aspx?type=link';
config.filebrowserImageBrowseUrl = '/Admin/Editor/ckeditor/browser.aspx?type=image';
config.wordcount = {
countHTML: false, // Whether or not to include Html chars in the Char Count
maxWordCount: -1, // Maximum allowed Word Count, -1 is default for unlimited
maxCharCount: -1, // Maximum allowed Char Count, -1 is default for unlimited
showCharCount: true, // Whether or not you want to show the Char Count
showWordCount: true, // Whether or not you want to show the Word Count
showParagraphs: false, // Whether or not you want to show the Paragraphs Count
countSpacesAsChars: true, // Whether or not you want to count Spaces as Chars
};
};