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

Introduced EditorConfig#initialData. Made config param optional #30

Merged
merged 7 commits into from
Mar 27, 2019

Conversation

scofalik
Copy link
Contributor

Suggested merge commit message (convention)

Feature: Introduced EditorConfig#initialData.


Additional information

Part of ckeditor/ckeditor5#1619.

Also, I've made config parameter in Editor.create() optional. There is no need for it and we also have an example in docs without using it.

*
* Creating an instance when using a {@glink builds/index CKEditor 5 build}:
* There are two general ways how the editor can be initialized. Remember that `DecoupledEditor` do not append the toolbar element
* to your web page so you have to do it manually after the editor has been initialized.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should change the order of these 2 sentences?

* If a DOM element is passed, its content will be automatically
* {@link module:editor-decoupled/decouplededitor~DecoupledEditor#setData loaded} to the editor upon initialization
* and the {@link module:core/editor/editorui~EditorUI#getEditableElement editable element} will replace the passed element in the DOM
* (the original element will be hidden and the editor will be injected next to it).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decoupled also do not use ElementReplacer.

@pjasiun pjasiun merged commit 7e01ca7 into master Mar 27, 2019
@pjasiun pjasiun deleted the t/ckeditor5/1619 branch March 27, 2019 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants