Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9916 closed Bug (invalid)

actions, onclick events, script blocks deleted in Chrome

Reported by: RosemaryONeill Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

I've created numerous forms in CKEditor without any problems in FireFox.

However, I recently tested a form in Chrome and after I saved, all script, onclick events, and even the action param were deleted.

For e.g., onclick="dothis();" was saved as onclick=""

I don't believe this is a CKEditor bug. It's some kind of Chrome filter.

However, I have not found any clear recommendations yet on how to stop Chrome from doing this.

Has anyone had any experience with this and know a solution?

Thanks!

Change History (2)

comment:1 Changed 11 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

I can't confirm this issue on Chrome. In source mode I wrote this HTML:

<form action="aaa">sss<input onclick="alert(1)" type="text" />&nbsp;</form>

And after switching between modes (what's equal to getting and loading data) everything looks exactly the same. I can also move that content to FF and back - nothing gets corrupted.

PS. This is a bug tracker, so if you have questions rather than bug reports, then use our forum - http://ckeditor.com/forums. Perhaps someone will know the answer there.

comment:2 Changed 11 years ago by RosemaryONeill

Sorry about that. I'll post it to the forum instead.

It's not a problem that occurs when switching between modes. It only happens when you save.

Thanks!

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