#13394 closed Bug (invalid)
editor instances appears twice
Reported by: | Heinz | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
After saving and loading back "CKEditor SDK Samples" as a Safari Webarchive CKEditor Instances appears twice. Happens with all HTML docs which includes CKEditor instances. Please see attached screenshot with red border. I want to use Safari Webarchive mechanism as a simple local content filestorage. But with double instances it does not make sense ;-)
regards Heinz
Attachments (2)
Change History (7)
Changed 10 years ago by
Attachment: | CKEditor from Safari Webarchive.png added |
---|
Changed 10 years ago by
Attachment: | Safari.png added |
---|
comment:1 Changed 10 years ago by
Keywords: | Instances removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.5.0 Beta |
comment:2 Changed 10 years ago by
Sorry I do not get your point. When I save a Website as "Webarchive" with Safari and open it again I get one to one content. There is nothing double. But with CKEDITOR instances implemented I get double editors. Maybe you try it my issue with Safari. And you will see the problem. Thanks in advcance
comment:3 Changed 10 years ago by
I have tried your issue in Safari and I can see that HTML for editor is doubled (Result is not 1:1 in this case). I don't get your point how CKEditor is responsible for this.
Most likely HTML for existing editor is saved and when page is loaded in a browser, CKEditor Java Script code creates one more instance on textarea.
comment:4 Changed 10 years ago by
Sorry I did not describe the cases correctly: 1) When you load any webpage "without" a CKEDITOR instance then you get a 1:1 result when saving as a webarchive and open it again. 2) When you load a webpage "with" a CKEDITOR instance , then the result is 2 x editors after saving as a webarchive and open it again.
I hope I could make it more clear, now. I do not know iif it is a "true" bug, I would not insist. But using a webarchive as a solution for a local storage ist not working together with CKEDITOR. So I can't use CKEDITOR for this purpose. I have to look for another soultion. Finally it is up to you how to proceed with this problem.
comment:5 Changed 10 years ago by
I hope I could make it more clear, now. I do not know iif it is a "true" bug, I would not insist. But using a webarchive as a solution for a local storage ist not working together with CKEDITOR. So I can't use CKEDITOR for this purpose. I have to look for another soultion. Finally it is up to you how to proceed with this problem.
I'm sorry, but it's a bug in webarchive and I don't think that we're going to spend our time investigating how this thing works and how to hack editor to work with it. E.g. I tried to check what HTML is really saved, because I guess that it is HTML with the whole editor, but it's not possible. I think that it's some live dump from DOM, but when it's opened again all the scripts are executed again. If I'm right, then webarchives are a mess and not only CKEditor won't work but most of the dynamic websites and most apps.
At the same time I think that it will be great if webarchives of sdk.ckeditor.com worked well. So if you are willing to investigate this, then you can send PRs to https://github.com/ckeditor/ckeditor-sdk.
I'm keeping this ticket closed as invalid, because this kind of issue is an integration issue, not CKEditor's issue.
I think you should rather report this issue to Safari.
Most likely Safari saves HTML with Created editor HTML. When page is loaded JavaScript gets called and initializes another editor.