Reputation: 199
I am using jHtmlArea as a text editor for cms. Which suits my client needs perfectly. I want a double click function on a div when clicked to activate the jHtmlArea.
If any one has come across similar type will help me to create.
Upvotes: 0
Views: 127
Reputation: 1030
When using jHtmlArea the library inserts a div containing an iframe just before the selected textarea element, and then hides the original element. So, you can do:
jQuery("#trigger_div").dblclick(function () {jQuery("iframe",jQuery("#mytextarea").prev()).focus();});
(note the iframe must have the same domain as the hosting page, otherwise you can't trigger javascript events on it or process it)
Upvotes: 0