| Page 1 of 1 | [ 4 posts ] |
|
I am using myEditor.editorDirty flag to find out any thing have changed in the editor, this flag only work if any pf the formatting button is pressed or used, but if simply type new text in the editor, the flag does not get changed. Even if I did a myEditor.saveHTML(), the flag does not changed still.
Please advice how to detect editor content been changed. |
|
It doesn't set dirty for all key events only:
Space Bar,End,Home,Left Arrow,Up Arrow,Right Arrow,Down Arrow, Forward Delete, Delete If you want more, you can listen to the editorKeyDown event and set it: Code: myEditor.on('editorKeyDown', function() { myEditor.editorDirty = true }); |
Khoa Bui
|
Hello Dav,
I want a signal for the actual change of editor content, such as text change, format change (change color, font, underline, bold..). I cannot find that exact property or event from YUI 2in3 editor. I may end up compare the original text with the current text, but before doing that, I prefer some support from Editor itself. Can you help? |
|
You can listen for the afterNodeChange event, the check for the editorDirty property.
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group