Hi All,
Can anyone tell is it possible to create a editor only depending on the JavaScript without the help of Iframe or ContentWindow.
For Example see this
http://ckeditor.com/demo
(the above link uses IFRAME)
can i have exactly like this.
I dont want in a way like that keeping one textarea above and the box below and when i select some text and click on bold displaying in the second box.
I want everyhting should happen in the same textarea or anything like without the help of IFRAME or ContentWindow. If it is possible please help me out
JavaScript Editor
Moderator: General Moderators
- PHPHorizons
- Forum Contributor
- Posts: 175
- Joined: Mon Sep 14, 2009 11:38 pm
Re: JavaScript Editor
A textarea element in HTML is very limiting. You cannot have styling inside a textarea (like bold, italic, different font sizes), so you probably cannot do what you want to do.
In other words, the entire textarea can be bold, but you cannot bold individual portions of it.
In other words, the entire textarea can be bold, but you cannot bold individual portions of it.
Re: JavaScript Editor
PHPHorizons wrote:A textarea element in HTML is very limiting. You cannot have styling inside a textarea (like bold, italic, different font sizes), so you probably cannot do what you want to do.
In other words, the entire textarea can be bold, but you cannot bold individual portions of it.
ok is there any way without using textarea
Re: JavaScript Editor
Using HTML5 contentEditable attribute, it's supported even by IE7, but it will be almost the same as using iframe, where instead of iframe will be DIV (http://nicedit.com/).