admin管理员组文章数量:1405904
I am trying to figure out how to create a textarea with 3 buttons: bold, italic, underline. I cannot go with any WYSIWYG editor as I have tested most of them and no one fits my needs. (e.g. most are configurable and could give me the option to have the 3 buttons but problems e when I paste formatted text in the field. Even if I set everything up, with tinymce for example, I get problems.)
I really need a simple, basic, text editor with bold, italic, underline, and if I copy and paste formatted text in the textarea, I do not want it to act like a rich text editor, I want it to act like a real textarea, which will automatically remove ALL formatting. Peoples might say I could do it with properly-configured WYSIWYG editor but the answer is NO. I spent to many hours trying to configure the text editors to only accept bold, italic, underline and I got to many errors/bugs with all the well known WYSIWYG editors. I am not a programmer, I am a quality analyst so I'm used to find bugs.
Are there any suggestions on how to "create" a textarea with bold, italic, underline capabilities and that will only accept those functions? (not a rich text editor). With Javascript, I would like to avoid JQuery if possible.
I am trying to figure out how to create a textarea with 3 buttons: bold, italic, underline. I cannot go with any WYSIWYG editor as I have tested most of them and no one fits my needs. (e.g. most are configurable and could give me the option to have the 3 buttons but problems e when I paste formatted text in the field. Even if I set everything up, with tinymce for example, I get problems.)
I really need a simple, basic, text editor with bold, italic, underline, and if I copy and paste formatted text in the textarea, I do not want it to act like a rich text editor, I want it to act like a real textarea, which will automatically remove ALL formatting. Peoples might say I could do it with properly-configured WYSIWYG editor but the answer is NO. I spent to many hours trying to configure the text editors to only accept bold, italic, underline and I got to many errors/bugs with all the well known WYSIWYG editors. I am not a programmer, I am a quality analyst so I'm used to find bugs.
Are there any suggestions on how to "create" a textarea with bold, italic, underline capabilities and that will only accept those functions? (not a rich text editor). With Javascript, I would like to avoid JQuery if possible.
Share Improve this question edited Sep 24, 2013 at 20:15 Jeromy French 12.1k19 gold badges78 silver badges136 bronze badges asked Sep 15, 2011 at 14:10 MattiewMattiew 111 silver badge2 bronze badges2 Answers
Reset to default 4Have you considered or tried Aloha editor: http://aloha-editor/ It is simple, HTML5 patible and doesn't use iFrames. It does have problems in older versions of IE though.
TEXTAREA
does not support formatting or any HTML tagging. There are no javascript tricks to change this.
You're going to have to roll-your-own or configure an existing editor.
本文标签:
版权声明:本文标题:textarea - Need to make selected text as bolditalicunderline using javascript, or need very basic text editors suggestions - Sta 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744942887a2633598.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论