This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into t/ckeditor5/494
- Loading branch information
Showing
8 changed files
with
467 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div id="editor"> | ||
<p>Foo<u> bar</u></p> | ||
<p><u>Foo</u><i> buz</i></p> | ||
<p>Foo<a href="#"><b> biz</b></a></p> | ||
<p>Text <a href="#">Link <b>Bold</b></a> Text</p> | ||
</div> | ||
|
||
<p>Editor HTML preview:</p> | ||
<code id="preview"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/ | ||
|
||
/* global console, document, window */ | ||
|
||
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; | ||
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials'; | ||
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'; | ||
import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline'; | ||
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold'; | ||
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic'; | ||
import Link from '@ckeditor/ckeditor5-link/src/link'; | ||
|
||
ClassicEditor | ||
.create( document.querySelector( '#editor' ), { | ||
plugins: [ Essentials, Paragraph, Underline, Bold, Italic, Link ], | ||
toolbar: [ 'undo', 'redo', '|', 'bold', 'underline', 'italic', 'link' ] | ||
} ) | ||
.then( editor => { | ||
window.editor = editor; | ||
|
||
const preview = document.querySelector( '#preview' ); | ||
|
||
preview.innerText = editor.getData(); | ||
|
||
editor.editing.view.on( 'render', () => { | ||
preview.innerText = editor.getData(); | ||
} ); | ||
} ) | ||
.catch( err => { | ||
console.error( err.stack ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Text nodes deep rendering ([#1125](https://github.com/ckeditor/ckeditor5-engine/issues/1125)) | ||
|
||
### Deep space rerender ([#1093](https://github.com/ckeditor/ckeditor5-engine/issues/1093)) | ||
|
||
1. Put caret after each `Foo` text (`Foo^`). | ||
1. Press space. | ||
|
||
**Expected**: Inserted space is visible. Space on the beginning of the next text node is replaced with ` `. | ||
|
||
### Link ending with styles ([ckeditor5-typing#120](https://github.com/ckeditor/ckeditor5-typing/issues/120)) | ||
|
||
1. Put caret on the end of the link (`Link Bold^`). | ||
1. Insert some text. | ||
|
||
**Expected**: Bold text is inserted as a part of the link. No errors thrown in the browser dev console. |
Oops, something went wrong.