JQuery Cleditor get textarea value on keyup?

It appears that cleditor hides the textarea and replaces it with an iframe (see line 203 of cleditor source).

It appears that cleditor hides the textarea and replaces it with an iframe (see line 203 of cleditor source). So to achieve what you want, you just need to access the resulting iframe contents: $("#input").cleditor(); $(". CleditorMain iframe").contents().

Find('body'). Bind('keyup', function(){ var v = $(this).text(); // or .html() if desired $('#x'). Html(v); }); Updated jsFiddle UPDATE to address Tim's comment This works in Chrome and Firefox (I don't have access to IE): $("#input").cleditor(); $( $(".

CleditorMain iframe")0.contentWindow. Document ). Bind('keyup', function(){ var v = $(this).text(); // or .html() if desired $('#x').

Html(v); }); Updated jsFiddle UPDATE 2 User ima007 was able to find a better cross-browser solution: jQuery Cleditor wysiwyg text editor: keyup() works in webkit browsers but not Firefox or IE.

Thank you, -tim peterson – tim peterson Oct 21 at 21:12 I answered your follow up here: stackoverflow. Com/questions/7864012/… – dgilland Oct 23 at 4:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions