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

T/1619: Expose protectely insertElement and createUIElement conversion helpers #1624

Merged
merged 3 commits into from
Jan 2, 2019

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Jan 2, 2019

Suggested merge commit message (convention)

Internal: Expose insertElement() and createUIElement() conversion helpers as protected functions. Closes ckeditor/ckeditor5#4456.


Additional information

  • This change is needed due to "catch-all" converters used in getData() from dev-utils/model.js used in tests
  • as those method are internal I've left integration tests for them as now - I plan to do the same for wrap() method removal from public API. It will need to stay as export but will be tested only by integration tests (wrap should not be exporte from dowcast helper ckeditor5#4453). The wrap() method is used by attribute change "catch-all" converter in dev-utils#getData()

@jodator jodator requested a review from pjasiun January 2, 2019 11:50
*
* This converter binds created UI elements with the marker name using {@link module:engine/conversion/mapper~Mapper#bindElementToMarker}.
*
* @param {module:engine/view/uielement~UIElement|Function} elementCreator A view UI element or a function returning the view element
Copy link

Choose a reason for hiding this comment

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

@protected?

@coveralls
Copy link

coveralls commented Jan 2, 2019

Coverage Status

Coverage increased (+0.1%) to 100.0% when pulling e4460db on t/1619 into 9306c22 on master.

@pjasiun pjasiun merged commit 85d6f75 into master Jan 2, 2019
@pjasiun pjasiun deleted the t/1619 branch January 2, 2019 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants