Skip to content

Commit 37761cf

Browse files
committed
Merge branch 't/11237'
2 parents 18df3e2 + 7847133 commit 37761cf

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Fixed Issues:
3131
* [#11042](http://dev.ckeditor.com/ticket/11125): Fixed: Keyboard navigation through menu and combo items will now cycle.
3232
* [#11011](http://dev.ckeditor.com/ticket/11011): Fixed: Method applyStyle removes attributes from nested elements.
3333
* [#11179](http://dev.ckeditor.com/ticket/11179): Fixed: editor.destroy() does not cleanup content generated by [TableResize plugin](http://ckeditor.com/addon/tableresize) for inline editors.
34+
* [#11237](http://dev.ckeditor.com/ticket/11237): Fixed: Table border attribute's value is deleted when pasting content from MS Word.
3435

3536
## CKEditor 4.3
3637

core/htmlparser/filter.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -338,23 +338,16 @@
338338
return ret;
339339

340340
// We're filtering node (element/fragment).
341-
if ( isNode ) {
342-
// No further filtering if it's not anymore
343-
// fitable for the subsequent filters.
344-
if ( ret && ( ret.name != orgName || ret.type != orgType ) )
345-
return ret;
346-
}
347-
// Filtering value (nodeName/textValue/attrValue).
348-
else {
349-
// No further filtering if it's not any more values.
350-
if ( typeof ret != 'string' )
351-
return ret;
352-
}
341+
// No further filtering if it's not anymore fitable for the subsequent filters.
342+
if ( isNode && ret && ( ret.name != orgName || ret.type != orgType ) )
343+
return ret;
353344

354345
// Update currentValue and corresponding argument in args array.
355346
// Updated values will be used in next for-loop step.
356347
if ( ret != undefined )
357348
args[ 0 ] = currentValue = ret;
349+
350+
// ret == undefined will continue loop as nothing has happened.
358351
}
359352
}
360353

0 commit comments

Comments
 (0)