aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes ckeditor: how to add permanent onclick event? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ckeditor: how to add permanent onclick event?" Watch "ckeditor: how to add permanent onclick event?" New topic
Author

ckeditor: how to add permanent onclick event?

Petr Dusek
Greenhorn

Joined: Nov 26, 2012
Posts: 23


I am looking for a way to make the CKEDITOR wysiwyg content interactive. This means for example adding some onclick events to the specific elements. I can do something like this:



After processing this action it works nice. But consequently if I change the mode to source-mode and then return to wysiwyg-mode, the javascript won't run. The onclick action is still visible in the source-mode, but is not rendered inside the textarea element.

However, it is interesting, that this works fine everytime:



And it is also not rendered inside the textarea element! How is it possible? What is the best way to work with onclick and onmouse events of CKEDITOR content elements?

I tried manually write this by the source-mode:



And the Javascript (onclick action) does not work. Any ideas?

Thanks a lot!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ckeditor: how to add permanent onclick event?
 
Similar Threads
How to copy a value to the same page?
one of the defined function in Javascript not working function name alertme()
spaces while populating using s:iterator
white-space nowrap and DOCTYPE
Struts 2 / Tiles / Tiny MCE