-
-
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
Calling create() more than once on an element completely freezes the browser #746
Comments
I can reproduce this issue. It's reproducible only for |
We know about this issue. It's caused by both editors overriding each other's changes. This is actually... the expected result for us. It means that everything works fine. But I understand that this may be awful to debug for developers. We need to add some checks β e.g. mark elements (with |
Classic editors work fine because they create own root editables. The issue occurs in Inline and Balloon because the instances share pre-existing DOM elements and use them as editables. Anyway, do you think https://github.com/ckeditor/ckeditor5-ui/issues/176 could solve the issue? Would it work with asynchronous editors, e.g. the creation of the first one had started but it hasn't set any CSS class yet, while another one is about to be created and since there's no class (or attribute, whatever...) it starts using the same DOM element? Or is a complete edge case? |
It must be done synchronously and immediately, otherwise, it will not be a reliable check. So it needs to be done by the core β possibly by the editor utils (since the base |
Feature: Introduced a `secureSourceElement()` utility that prevents from initialising more than one editor on the same DOM element. See ckeditor/ckeditor5#746.
Other: Introduced a check that prevents sharing source elements between editor instances. See ckeditor/ckeditor5#746.
Other: Introduced a check that prevents sharing source elements between editor instances. See ckeditor/ckeditor5#746.
Other: Introduced a check that prevents sharing source elements between editor instances. See ckeditor/ckeditor5#746.
Closed by: ckeditor/ckeditor5-core@6a59058 |
π Is this a bug report or feature request? (choose one)
π» Version of CKEditor
alpha2
π Steps to reproduce
β Expected result
nothing happens, or a warning, or an error
β Actual result
browser completely freezes
π Other details that might be useful
https://codepen.io/anon/pen/NXbvMV?editors=1111
The text was updated successfully, but these errors were encountered: