textareaopenwysiwyg

openWYSIWYG disabled textarea


Is there anyone here uses openWYSIWYG 1.4.7?

I wanted to display only my textarea by calling

WYSIWYG.display('textarea1');   

And I want the text on my textarea not to be selectable that's why I tried this

<textarea1 id=textarea1 name='test1' disabled  ></textarea>

but it doesn't work.

Any suggestion?


Solution

  • I doubt if you can prevent selecting the text in text area directly. You can try placing an element like iframe on top of with with higher Z-index.. so when the user selects what they see as a test area, he will actually be interacting with transparent iframe.