-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issues after recent EditorUI* refactoring #1489
Comments
It was there. We did not move it there. |
Ouch :D It was moved there in June 2018. I didn't notice this change back then. I still have mixed feelings but in such case let's not touch it now. |
😭 The commit message didn't make it to the merge commit somehow. I'm not very fluent in writing
It is used only in tests (in 7 files to be precise), but yes, it should be replaced with |
I corrected the tests, see:
The above 4 PRs covers all |
@Reinmar Did you mean breaking changes related to ckeditor/ckeditor5-ui@b8cc937 or to all changes from PRs related to #1449 issue? There were 7 PRs in 7 different repositories and each has its own set of breaking changes. Should I revisit all? |
Tests: Removed all usages of `ClassicTestEditorUI.view#editableElement`. Replaced by `EditorUI#getEditableElement()` (see ckeditor/ckeditor5#1489).
Tests: Removed all usages of `ClassicTestEditorUI.view#editableElement`. Replaced by `EditorUI#getEditableElement()` (see ckeditor/ckeditor5#1489).
Tests: Removed all usages of `ClassicTestEditorUI.view#editableElement`. Replaced by `EditorUI#getEditableElement()` (see ckeditor/ckeditor5#1489).
I closed all PRs. What is left is revisiting the BREAKING CHANGES brought by #1449 constellation. |
Those changes are well documented and merged correctly. So it's fine. So I think it's mostly about ckeditor/ckeditor5-ui@b8cc937. Regarding examples, you can see many in https://github.com/ckeditor/ckeditor5-engine/blob/master/CHANGELOG.md. The main idea is that it's not enough to describe what changed. But it also needs to be clear how to modify your plugin/editor/integration to align your code to the changes. Sometimes it requires writing this explicitly, sometimes the change itself is clear enough that it does not require additional more information, sometimes it's just a matter of mentioning some other/new API fragment or construct. |
@f1ames, if you list me here the changes made in ckeditor/ckeditor5-ui@b8cc937 I'll review them here and let you know what we could write. |
The biggest change was refactoring of
So from my perspective the breaking changes are
The situation is similar with
Not sure about the second one, because it seems redundant, but that was the case basically, that those two properties held the same element (apart from the case where cc @Reinmar |
Thanks! |
Tests: Removed all usages of `ClassicTestEditorUI.view#editableElement`. Replaced by `EditorUI#getEditableElement()` (see ckeditor/ckeditor5#1489).
We did not discuss movingEditorUI
tockeditor5-core
. I see why this was done – no reference to theckeditor5-ui
, plus theEditorWithUI
interface is there. However, this is a false promise that this interface is a "generic UI" interface. Realistically, either all plugins use our UI (from the ground up) or a completely different UI lib and then they can also rethink how the "editor with UI" interface may need to look like.So, I actually think that this is a wrong direction. If anything, all those things should be moved tockeditor5-ui
.We should make sure that all breaking changes are listed and in a way which will be understandable for people. Basically, this is not enough: ckeditor/ckeditor5-ui@b8cc937. It's not complete and does not help to understand what happened. Actually, this isn't even a correct merge commit. Since it was done already, please list all the breaking changes here in this ticket and I'll include them in the changelog.
Remove all occurrences of
view.editableElement
. It's defined only inClassicTestEditorUI#init()
and used in dozen of places.The text was updated successfully, but these errors were encountered: