| Page 1 of 1 | [ 4 posts ] |
Khoa Bui
|
I want a signal for the actual change of editor content, including text change (modify the text), 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. Anyone can help? |
|
Listen for the afterNodeChange event, that is fired very often and usually means that something important has changed.
|
Khoa Bui
|
Unfortunately, the 'afterNodeChange' is fired so often, such as when clicking on the editor content, or a toolbar icon which does not affect the text content at all.
I see your example here: http://new.davglass.com/files/yui/editor7/. But it does not really help. |
|
Yes, that's the point. Clicking into the editor and pasting with a mouse button is a change. Even tho the editor can't determine that they did that, it still fires an afterNodeChange event.
Like I said, you can listen on the afterNodeChange event then check the editorDirty flag. Or you can set your own flag to determine that you want to do something. It's totally up to you and your criteria. |
| 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