开发者

How to make niceditor readonly?

开发者 https://www.devze.com 2023-02-14 14:14 出处:网络
I have some textareas in my page. I converted all into niceeditor with the option provided. I will save the content of the niceditor into my database. While i am retrieving, i will get the html tagged

I have some textareas in my page. I converted all into niceeditor with the option provided. I will save the content of the niceditor into my database. While i am retrieving, i will get the html tagged data. I am showing the text in my page.

So to show the rich text of what i enter. I should make niceditor. So that i could show the rich text. And also it should be readonly.

Please guide me to make niceditor readonly or guide me to show the rich text without editing option through some way.

my textarea name is 'area开发者_Go百科3'. thanks


Why not use div instead of textarea? Nicedit supports convert divs too , You can toggle nicedit on or off.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号