Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

CKEditor from Safari Webarchive.png (409.3 KB) - added by Heinz 10 years ago.
Safari.png (179.2 KB) - added by Jakub Ś 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Heinz

Changed 10 years ago by Jakub Ś

Attachment: Safari.png added

comment:1 Changed 10 years ago by Jakub Ś

Keywords: Instances removed
Resolution: invalid
Status: newclosed
Version: 4.5.0 Beta

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.

comment:2 Changed 10 years ago by Heinz

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 Jakub Ś

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 Heinz

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 Piotrek Koszuliński

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy