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

t/10: Allowed the editable element in DecoupledEditor.constructor(). Removed config.toolbarContainer and config.editableContainer. #11

Merged
merged 7 commits into from
Mar 29, 2018

Conversation

oleq
Copy link
Member

@oleq oleq commented Mar 27, 2018

Suggested merge commit message (convention)

Other: Allowed the editable element to be passed into DecoupledEditor.constructor(). Removed config.toolbarContainer and config.editableContainer. Closes ckeditor/ckeditor5#2245. Closes ckeditor/ckeditor5#912.

BREAKING CHANGE: The config options config.toolbarContainer and config.editableContainer have been removed. Please refer to the DecoupledEditor class API documentation to learn about possible methods of bootstrapping the UI.


Additional information

It's a constellation:

…uctor(). Removed config.toolbarContainer and config.editableContainer.
@@ -58,9 +61,13 @@ The code you have just created will run the editor but still, the user interface
The following structure has two containers that correspond to the configuration you have just used. The editor will inject the toolbar and editable into respective containers as it starts.

```html
<div class="document-editor">
<div class="document-editor ck-rounded-corners">
Copy link
Member

Choose a reason for hiding this comment

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

Why is it required to add this class manually? This is unclear for me why, as an integration developer, I'd need to add some CKE's class to my elements to make buttons in the toolbar rounded.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 63683b6.

@coveralls
Copy link

coveralls commented Mar 28, 2018

Pull Request Test Coverage Report for Build 53

  • 12 of 12 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 39: 0.0%
Covered Lines: 44
Relevant Lines: 44

💛 - Coveralls

@Reinmar
Copy link
Member

Reinmar commented Mar 28, 2018

It's very odd, but the builds are constantly failing: see e.g. https://travis-ci.org/ckeditor/ckeditor5-editor-decoupled/builds/359460250

Chrome runs ok, but then the 3 other browsers (local FF and BrowserStack's Edge and Safari) crash:

image

They crash somewhere around 13th test. Crash or timeout, because the timing is weird too.

When running these tests locally once or twice I got them to crash too. But this is oooood.

@Reinmar
Copy link
Member

Reinmar commented Mar 28, 2018

Unfortunately, R- due to failing tests.

@Reinmar Reinmar merged commit 327b2ed into master Mar 29, 2018
@Reinmar Reinmar deleted the t/10 branch March 29, 2018 14:47
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