-
-
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
View renderer filler was lost #1210
Comments
I tried to duplicate this behaviour on clean CKEditor instance without any success (you can check here https://codepen.io/f1ames/pen/yxBdPw). Also looking at the stack trace in the video it shows some Angular package (I think) - Few questions to clarify:
|
Hey @f1ames , thank you for the fast reply. I'm using Google Chrome version 68.0.3440.106 (Official Build) (64-bit). The project I'm trying to integrate the CKEditor into is built with Angular, but the library that uses it isn't (GrapesJS). I did a rewrite of a plugin which extends the default GrapesJS RichTextEditor with the CKEditor 5 instead of 4. The library itself creates a canvas iframe, could this be a problem in the new version of CkEditor? |
I wonder whether it may be related to the @dimaip's PR: ckeditor/ckeditor5-engine#1502. I know that Neos uses iframes too. @dimaip, I know you had the same error. Did your PR was supposed to fix that (we should've asked that before merging it ;P)? |
Yes. It fixed it for me and I'm almost sure it would fix it for @FrciSmrci as well. You could do this to give it a try: |
Wow, that's super strange. I'd then try to set a breakpoint here https://github.com/ckeditor/ckeditor5-engine/blob/d710524a780084833fa676f355b5e6f55ac64e05/src/view/renderer.js#L385 |
I'd risk saying that you may be using the old engine still. It's a bit tricky to force npm to install just one version of a package. I think that with yarn it may be tricky too. If any package depends on that old version (and they do) it will be installed anyway and webpack will use it too. Which may lead to even more errors (duplicated code on runtime). |
yeah when developing locally you could just
|
I'm sorry but that's not going to work either ;/ We've made huge changes in OT implementation and they are on master in ckeditor5-engine already. That makes ckeditor5-engine incompatible with other packages (at least, it is expected that they break at some point). There are more advanced way of doing it, but in this simple case (the patch is really short) I'd do this:
the ( Object.prototype.toString.call( domNode ) == '[object Text]' ) Then, you can check it again. |
For more flexible, maintainable and usable setup (in the future), mgit2 and Lerna allow you to freely use git based versions of packages. We use them in our development setup which is described in https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/development-environment.html. If you'd like to use them in your project, I'd need to write a tutorial how to add them to an existing project. This may be helpful for more guys. PS. The other way is using e.g. mgit2 plus webpack's aliases to force webpack to use pkgs cloned by mgit2. |
@Reinmar you are right. I searched for the error occurrences through the code and realised that the logic is bundled in @ckeditor/ckeditor5-build-inline/build/ckeditor.js I confirmed it was being fired by setting a debugging point inside the _removeInlineFiller method. Could I clone the ckeditor5 repo and build an ckeditor5-build-inline package with the specified ckeditor-engine version? What would you propose? |
@Reinmar Not sure if this question slipped by. Could I clone the ckeditor5 repo and build an ckeditor5-build-inline package with the specified ckeditor-engine version? What would you propose? |
I'm sorry, I missed your comment. So, you want to rebuild an existing build. That's covered in https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/custom-builds.html. However, the problem is backporting the fix that we made in https://github.com/ckeditor/ckeditor5-engine/pull/1502/files to the last stable release of ckeditor5-engine (which is here: https://github.com/ckeditor/ckeditor5-engine/tree/stable). You cannot use the To do that, @dimaip planned to fork ckeditor5-engine and cherry pick that patch there. IDK if he did that, but if not, you can do it easily too. With that done, you can you do this as follows:
That installed you the latest stable (published) version of ckeditor5-engine, so let's replace it with your fork:
I hope I didn't miss anything... |
tl;dr is that to rebuild ckeditor5-build-inline, the shortest way is to:
The same can be done by cloning
|
Btw, to save a few steps you could use my fork: https://github.com/dimaip/ckeditor5-engine/tree/iframe |
Nope I did not, CKE5 works perfectly fine for us now... |
🐞Bug report | Other
💻 CKEditor Build Inline v 11.0.1
📋 Steps to reproduce
When using the Basic styling option as Bold a new strong element is created as a first child of the editing p node. The result turns out like this.
<p><strong>​​​​​​​​​​​​​​</strong>Put your text here</p>
I'm attaching a [screen recording] (https://drive.google.com/open?id=1oslX7Ni1Ds5bQqGiQpiOcku7UCzM4sZR) of the mentioned behaviour.When using the link option the results is an a element created as a first child of the editing p node with the same content as the link.
<p><a class="ck-link_selected" href="https://google.com">https://google.com</a>Put your text here</p>
✅ Expected result
The edited content should be wrapped inside the appropriate tag.
❎ Actual result
The edited content is not wrapped, the tag gets inserted before the string.
📃
The bulleted and numbered list options work as expected.
When focusing out of the element I get the View renderer file was lost error.
PS: Till now I used CKEditor 4 and all of the mentioned scenarios worked as expected.
Do you have any idea why something like this would be happening or could you at least point me into some the right direction what to research further?
Thank you in advance!
The text was updated successfully, but these errors were encountered: