How to add a caret like FCKEditor?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gleery

    How to add a caret like FCKEditor?

    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?
  • Joost Diepenmaat

    #2
    Re: How to add a caret like FCKEditor?

    gleery <joehust@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/

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: How to add a caret like FCKEditor?

      Joost Diepenmaat wrote:
      gleery <joehust@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.c om/downloads/details.aspx?fa milyid=e59c3964-672d-4511-bb3e-2d5e1db91038&di splaylang=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>

      Comment

      • gleery

        #4
        Re: How to add a caret like FCKEditor?

        On Jul 6, 9:17 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.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.mozil la.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.c om/downloads/details.aspx?fa milyid=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

        Comment

        Working...