Opened 8 years ago
Closed 8 years ago
#16855 closed Bug (invalid)
htmlEncodeOutput thogether with allowedContent and/or extraAllowedContent
Reported by: | SokratesSoft | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.8 |
Keywords: | htmlEncodeOutput extraAllowedContent allowedContent | Cc: |
Description
Steps to reproduce
When I define in the global config htmlEncodeOutput=true thogether with allowedContent=true and/or extraAllowedContent = '*(*);*{*}' then the Output is not encoded and it Ends in a bad request on asp.net:
CKEDITOR.config.htmlEncodeOutput = true; CKEDITOR.config.allowedContent = true; CKEDITOR.config.extraAllowedContent = '*(*);*{*}';
Expected result
The Output should be encoded to avoid bad request error on asp.net
Actual result
The Output is not endoded as soon as I set allowedContent=true and/or extraAllowedContent
Other details (browser, OS, CKEditor version, installed plugins)
$j = jQuery.noConflict(); var ckobjects = new Array(); $j(document).ready(function () {
CKEDITOR.config.htmlEncodeOutput = true; CKEDITOR.config.allowedContent = true; CKEDITOR.config.extraPlugins = 'customcommand'; $j('[editcontent]').each(function(){
var tmpelem = CKEDITOR.replace(this, {
language: 'de', enterMode: CKEDITOR.ENTER_BR, toolbar: [
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, { name: 'insert', items: ['Table', 'SpecialChar', 'Source'] },
{ name: 'styles', items: ['Format', 'FontSize'] }, { name: 'colors', items: ['TextColor', 'BGColor'] }, { name: 'tools', items: ShowBlocks? }, { name: 'customcommand', items:customcommand? }
]
}); tmpelem.editor = this.attributes.editor; ckobjects.push(tmpelem);
});
});
Dear Sirs
Thanks to you and the hole comunity for this grat Project. By sending this report, I hope to help you increasing the Quality of CKEditor.
Have fun and good codeing