cyshaw
08-09-2007, 03:38 PM
I'm working with an JS Editor (FCKEditor) and in the editor window I want to display some text that shows up, but the user cannot edit that text.
I thought of placing a DIV around the text; However, the DIV still allows the user to edit the text. Does DIV has a disable or readonly property? I tried onClick but could not stop the user from modifying the text.
I even thought of placing the text in a text area and using either disable or readonly; however, it does not convert the HTML markup as it should look.
Is there a way to display HTML code in a text area that will actually show up as it will be displayed?
If someone could point me in the right direction it would be greatly appreicated!
Thanks.
I thought of placing a DIV around the text; However, the DIV still allows the user to edit the text. Does DIV has a disable or readonly property? I tried onClick but could not stop the user from modifying the text.
I even thought of placing the text in a text area and using either disable or readonly; however, it does not convert the HTML markup as it should look.
Is there a way to display HTML code in a text area that will actually show up as it will be displayed?
If someone could point me in the right direction it would be greatly appreicated!
Thanks.