By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,713 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,713 IT Pros & Developers. It's quick & easy.

How to add a caret like FCKEditor?

P: n/a
We can add a caret in textarea, but when I inspect FCkEditor with
firebug, I don't find a textarea tag, but still there is a caret
there. I wonder how Fckeditor do that? Anyone know that?
Jul 6 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
gleery <jo*****@gmail.comwrites:
We can add a caret in textarea, but when I inspect FCkEditor with
firebug, I don't find a textarea tag, but still there is a caret
there. I wonder how Fckeditor do that? Anyone know that?
See http://developer.mozilla.org/en/docs/Midas

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Jul 6 '08 #2

P: n/a
Joost Diepenmaat wrote:
gleery <jo*****@gmail.comwrites:
> We can add a caret in textarea, but when I inspect FCkEditor with
firebug, I don't find a textarea tag, but still there is a caret
there. I wonder how Fckeditor do that? Anyone know that?

See http://developer.mozilla.org/en/docs/Midas
To be precise, FCKEditor's UI consists of an iframe which has a document
consisting of a table that has the toolbars in its first row and an iframe
with a Document object that has designMode=on in its second one. That's
for Gecko-based UAs.

For MSHTML-based UAs, the contentEditable property of the inner document's
`body' element object is set to `true' instead:

<http://msdn.microsoft.com/en-us/library/ms537837.aspx>

Both Firebug and IE Developer Toolbar can show this:

<http://getfirebug.com/>
<http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en>
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Jul 6 '08 #3

P: n/a
On Jul 6, 9:17 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Joost Diepenmaat wrote:
gleery <joeh...@gmail.comwrites:
We can add a caret in textarea, but when I inspect FCkEditor with
firebug, I don't find a textarea tag, but still there is a caret
there. I wonder how Fckeditor do that? Anyone know that?
Seehttp://developer.mozilla.org/en/docs/Midas

To be precise, FCKEditor's UI consists of an iframe which has a document
consisting of a table that has the toolbars in its first row and an iframe
with a Document object that has designMode=on in its second one. That's
for Gecko-based UAs.

For MSHTML-based UAs, the contentEditable property of the inner document's
`body' element object is set to `true' instead:

<http://msdn.microsoft.com/en-us/library/ms537837.aspx>

Both Firebug and IE Developer Toolbar can show this:

<http://getfirebug.com/>
<http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672...>

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Thanks for your explanations. I understand it now
Jul 7 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.