Skip to content

Commit

Permalink
Fixed issue : HTML editor broke using < > ... in Expression
Browse files Browse the repository at this point in the history
Dev: see http://manual.limesurvey.org/Expression_Manager#HTML_editor_issue
Dev: HTML produced with XSS is better than without ( outside EM < is replaced by &lt; with xss)
Dev: todo : replace xssFilter by textFilter and allow plugin to do something
  • Loading branch information
Shnoulle committed Aug 3, 2014
1 parent 17b7485 commit 8b1bc26
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions scripts/admin/ckeditor-config.js
Expand Up @@ -14,11 +14,11 @@ CKEDITOR.editorConfig = function( config )
config.toolbarCanCollapse = false;
config.resize_enabled = false;
config.autoParagraph = false;
config.entities = false;
if($('html').attr('dir') == 'rtl') {
config.contentsLangDirection = 'rtl';
}
config.basicEntities = false;

if($('html').attr('dir') == 'rtl') {
config.contentsLangDirection = 'rtl';
}

config.toolbar_popup =
[
Expand All @@ -37,7 +37,6 @@ CKEDITOR.editorConfig = function( config )
['TextColor','BGColor'],
[ 'ShowBlocks','Templates']
];

config.toolbar_inline =
[
['Maximize','Createlimereplacementfields'],
Expand All @@ -55,10 +54,6 @@ CKEDITOR.editorConfig = function( config )
['TextColor','BGColor'],
[ 'ShowBlocks','Templates'],
];




config.toolbar_inline2 =
[
['Maximize','Createlimereplacementfields'],
Expand All @@ -68,12 +63,7 @@ CKEDITOR.editorConfig = function( config )
['Link','Unlink','Image'],
['Source']
];


config.extraPlugins = "ajax,limereplacementfields";



};

(function () {
Expand Down

0 comments on commit 8b1bc26

Please sign in to comment.