We have just upgraded to CKEditor 4.0 (we use a DIV to hold the container along with an appendTo() to put the editor in place), and when we click on the SOURCE button, the editor buffer has the following line added to the very top:
--><!--{cke_protected}
What might cause this (it doesn't happen to all of our editors, so it must be some combo of what we're doing to set it up that was working okay under 3.6.5)? It's particularly bad because it's not even a correct HTML comment.
It even will do it when the editor is in readOnly mode.
Here's our inPageConfig
{
toolbar : 'Custom',
toolbar_Custom : [{ name: 'styles', items: ['Styles','Format','Bold','Italic','Underline','TextColor','BGColor'] },
{ name: 'fonts', items: ['Font','FontSize'] },
{ name: 'align', items: ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'] },'/',
{ name: 'clipboard', items: ['Cut','Copy','Paste','PasteText','PasteFromWord'] },
{ name: 'search', items: ['Find','Replace'] },
{ name: 'undo', items: ['Undo','Redo'] },
{ name: 'lists', items: ['NumberedList','BulletedList'] },
{ name: 'indent', items: ['Outdent','Indent','CreateDiv'] },
{ name: 'table', items: ['Table','HorizontalRule','PageBreak','SpecialChar'] },
{ name: 'links', items: ['Image','Link'] },
{ name: 'source', items: ['Source','ShowBlocks'] }],
toolbarCanCollapse : false,
removePlugins : 'scayt,resize',
height : '300px',
baseFloatZIndex : 32000,
tabSpaces : 4,
pasteFromWordNumberedHeadingToList : true,
contentsCss : '/open-eSignFormsVaadin/static/esf/esf.css',
bodyClass : 'esf',
disableNativeSpellChecker : false,
font_names : 'Arial/Arial, Helvetica, sans-serif;Calibri/Calibri, Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif',
stylesSet : 'esfStyleSet:/open-eSignFormsVaadin/static/esf/esfStyleSet.js',
filebrowserBrowseUrl : '/open-eSignFormsVaadin/ckeditorFileBrowser.jsp?ccid=Zz5G4wdtkc7cEbf8FjPJ',
filebrowserWindowWidth : '500',
filebrowserWindowHeight : '500',
filebrowserImageBrowseUrl : '/open-eSignFormsVaadin/ckeditorImageBrowser.jsp?ccid=Zz5G4wdtkc7cEbf8FjPJ',
filebrowserImageWindowWidth : '600',
filebrowserImageWindowHeight : '500',
protectedSource : [ /<%.*%>/g , /<[a-z]*:.*\/>/g ]
}
No protectedSource as part of inPageConfig?
It seems that we had to rework our code so that the protectedSource was not included in the inPageConfig, but sent down the regular expressions so that they could be pushed.