Skip to content
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

Use delayIfDetached config for editor set to true by default #190

Closed
sculpt0r opened this issue May 3, 2021 · 4 comments · Fixed by #222
Closed

Use delayIfDetached config for editor set to true by default #190

sculpt0r opened this issue May 3, 2021 · 4 comments · Fixed by #222
Assignees
Labels
status:confirmed An issue confirmed by the development team. type:feature A feature request.
Milestone

Comments

@sculpt0r
Copy link
Contributor

sculpt0r commented May 3, 2021

Are you reporting a feature request or a bug?

Feature

Base on our investigation on ckeditor/ckeditor4#4390 issue and fix we provide for it: ckeditor/ckeditor4#4463. We should use the delayIfDetached config set to true by default in integrations, just to prevent any issue. Also, we need to adjust editor creation: to properly mantain editor data (ckeditor/ckeditor4#4390 (comment))

const instance: CKEditor4.Editor = this.type === CKEditor4.EditorType.INLINE
? CKEDITOR.inline( element, this.config )
: CKEDITOR.replace( element, this.config );

The above line assumes we get editor instance, but that doesn't have to be true with delayed creation.

Expected result

What is the expected result of the above steps?

Actual result

What is the actual result of the above steps?

Other details

  • Browser: -
  • OS: -
  • Integration version: -
  • CKEditor version: -
  • Installed CKEditor plugins: -
@sculpt0r sculpt0r added status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc). size:XS labels May 3, 2021
@Dumluregn
Copy link
Collaborator

I suppose this should be done after the release of CKEditor with ckeditor/ckeditor4#4463, so when 4.17.0 is out? And we should mark it as blocked for now (here and in the other integration repos)?

@sculpt0r
Copy link
Contributor Author

Actually, it can be done without ckeditor/ckeditor4#4463. It will help prevent errors until reattach happen. So very partially, but still ;)

And indeed, only after 4.17.0 release.

So I mark all of them as blocked until the next major release.

@sculpt0r sculpt0r added the status:blocked An issue which development is blocked by another issue (internal or external one). label May 14, 2021
@sculpt0r sculpt0r removed the status:blocked An issue which development is blocked by another issue (internal or external one). label Nov 23, 2021
@sculpt0r
Copy link
Contributor Author

Since https://github.com/ckeditor/ckeditor4/releases/tag/4.17.0 it is no longer blocked.

@jacekbogdanski jacekbogdanski changed the title Use delayIfDetached config for editor set to true by default. Use delayIfDetached config for editor set to true by default Nov 30, 2021
@Comandeer Comandeer self-assigned this Dec 6, 2021
@CKEditorBot
Copy link
Collaborator

Closed in #222

@jacekbogdanski jacekbogdanski added type:feature A feature request. and removed type:task Any other issue (refactoring, typo fix, etc). labels Jan 12, 2022
@jacekbogdanski jacekbogdanski added this to the 2.4.0 milestone Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:confirmed An issue confirmed by the development team. type:feature A feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants