X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fhtmldataprocessor%2Fplugin.js;h=24e4830bec000a6d625c2a5ff5345ed3ca025fa9;hb=refs%2Ftags%2Fv3.4;hp=8a17828c4a45a0a9ef7bccc1e983b3cb32f414d0;hpb=f8fc585c18d287eb325c575596d183122486b641;p=ckeditor.git diff --git a/_source/plugins/htmldataprocessor/plugin.js b/_source/plugins/htmldataprocessor/plugin.js index 8a17828..24e4830 100644 --- a/_source/plugins/htmldataprocessor/plugin.js +++ b/_source/plugins/htmldataprocessor/plugin.js @@ -178,6 +178,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } }, + html : function( element ) + { + delete element.attributes.contenteditable; + delete element.attributes[ 'class' ]; + }, + body : function( element ) { delete element.attributes.spellcheck; @@ -195,7 +201,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license title : function( element ) { - element.children[ 0 ].value = element.attributes[ '_cke_title' ]; + var titleText = element.children[ 0 ]; + titleText && ( titleText.value = element.attributes[ '_cke_title' ] || '' ); } },