JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / htmldataprocessor / plugin.js
index 8a17828..24e4830 100644 (file)
@@ -178,6 +178,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        }\r
                                },\r
 \r
+                               html : function( element )\r
+                               {\r
+                                       delete element.attributes.contenteditable;\r
+                                       delete element.attributes[ 'class' ];\r
+                               },\r
+\r
                                body : function( element )\r
                                {\r
                                        delete element.attributes.spellcheck;\r
@@ -195,7 +201,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                                title : function( element )\r
                                {\r
-                                       element.children[ 0 ].value = element.attributes[ '_cke_title' ];\r
+                                       var titleText = element.children[ 0 ];\r
+                                       titleText && ( titleText.value = element.attributes[ '_cke_title' ] || '' );\r
                                }\r
                        },\r
 \r