Skip to content

Commit

Permalink
Merge branch 't/9882'
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Feb 8, 2013
2 parents f41c432 + c54b098 commit cd289c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -7,6 +7,7 @@ CKEditor 4 Changelog
* [#9772](http://dev.ckeditor.com/ticket/9772): Custom buttons in dialog footer have different look and size (Moono, Kama).
* [#9029](http://dev.ckeditor.com/ticket/9029): Custom styles added with styleSet.add() are displayed in wrong order.
* [#9887](http://dev.ckeditor.com/ticket/9887): Disable magicline when editor.readOnly is set.
* [#9882](http://dev.ckeditor.com/ticket/9882): Fixed empty document title on getData() if set via docprops dialog.

## CKEditor 4.0.1

Expand Down
7 changes: 6 additions & 1 deletion core/htmldataprocessor.js
Expand Up @@ -565,7 +565,12 @@

title: function( element ) {
var titleText = element.children[ 0 ];
titleText && ( titleText.value = element.attributes[ 'data-cke-title' ] || '' );

// Append text-node to title tag if not present (i.e. non-IEs) (#9882).
!titleText && append( element, titleText = new CKEDITOR.htmlParser.text() );

// Transfer data-saved title to title tag.
titleText.value = element.attributes[ 'data-cke-title' ] || '';
}
},

Expand Down

0 comments on commit cd289c2

Please sign in to comment.