Skip to content

Commit cd289c2

Browse files
committed
Merge branch 't/9882'
2 parents f41c432 + c54b098 commit cd289c2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CKEditor 4 Changelog
77
* [#9772](http://dev.ckeditor.com/ticket/9772): Custom buttons in dialog footer have different look and size (Moono, Kama).
88
* [#9029](http://dev.ckeditor.com/ticket/9029): Custom styles added with styleSet.add() are displayed in wrong order.
99
* [#9887](http://dev.ckeditor.com/ticket/9887): Disable magicline when editor.readOnly is set.
10+
* [#9882](http://dev.ckeditor.com/ticket/9882): Fixed empty document title on getData() if set via docprops dialog.
1011

1112
## CKEditor 4.0.1
1213

core/htmldataprocessor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,12 @@
565565

566566
title: function( element ) {
567567
var titleText = element.children[ 0 ];
568-
titleText && ( titleText.value = element.attributes[ 'data-cke-title' ] || '' );
568+
569+
// Append text-node to title tag if not present (i.e. non-IEs) (#9882).
570+
!titleText && append( element, titleText = new CKEDITOR.htmlParser.text() );
571+
572+
// Transfer data-saved title to title tag.
573+
titleText.value = element.attributes[ 'data-cke-title' ] || '';
569574
}
570575
},
571576

0 commit comments

Comments
 (0)