Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Linked changes to a Github issue with a link to the issue i…
Browse files Browse the repository at this point in the history
…n in-code comments.
  • Loading branch information
scofalik committed Jun 17, 2019
1 parent 020c743 commit 78511eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/view/domconverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,13 @@ export default class DomConverter {

// 2. Replace the last space with nbsp if there are two spaces at the end or if the next node starts with space or there is no
// next node (container element boundary).
//
// Keep in mind that Firefox prefers $nbsp; before tag, not inside it:
//
// Foo <span>&nbsp;bar</span> <-- bad.
// Foo&nbsp;<span> bar</span> <-- good.
//
// More here: https://github.com/ckeditor/ckeditor5-engine/issues/1747.
if ( data.charAt( data.length - 1 ) == ' ' ) {
const nextNode = this._getTouchingViewTextNode( node, true );

Expand Down

0 comments on commit 78511eb

Please sign in to comment.