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

Introduced EditorConfig#initialData. Made config param optional #50

Merged
merged 6 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.

* If a DOM element is passed, its content will be automatically
* {@link module:editor-inline/inlineeditor~InlineEditor#setData loaded} to the editor upon initialization
* and the {@link module:core/editor/editorui~EditorUI#getEditableElement editor element} will replace the passed element in the DOM
* (the original one 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.

Are you sure anything will be replaced in the inline editor?

* @returns {Promise} A promise resolved once the editor is ready.
* The promise returns the created {@link module:editor-inline/inlineeditor~InlineEditor} instance.
* Moreover, the editor data will be set back to the original element once the editor is destroyed and when a form, in which
* this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration with native
Copy link

Choose a reason for hiding this comment

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

It's not true.

@pjasiun pjasiun merged commit 59e97b5 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