[ 2 posts ]

Seba

  • Username: SebaVDP
  • Joined: Sun May 06, 2012 9:38 am
  • Posts: 2
  • Offline
  • Profile
Tags:

Detect content changes in rich text editor

Post Posted: Sun May 06, 2012 9:52 am
+0-
Hi,

How can I detect when the content has been changed in the rich text editor?
Is there an event where I can subscribe to?

Regards

Seba

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: Detect content changes in rich text editor

Post Posted: Wed May 09, 2012 5:58 am
+0-
You can listen on the nodeChange event and check for the editorDirty property:

http://developer.yahoo.com/yui/docs/YAH ... ditorDirty

That tells you the Editor has changed since the last time it was checked (as long as you reset it to false when you check it)
  [ 2 posts ]
Display posts from previous:  Sort by  
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