get the HTML code from HTMLEditorKit

Discussion in 'Java' started by plutian, Oct 15, 2003.

  1. plutian

    plutian Guest

    Hi all,

    I'm building a simple HTML editor using HTMLEditorKit. There are several
    questions I would like to ask.

    1. When I selected some text or object in the html, how could I get the html
    code behind?

    2. How can I insert the html code into the original html document with
    appropriate location?

    Thx,
    Plutian
    plutian, Oct 15, 2003
    #1
    1. Advertising

  2. plutian

    ak Guest

    "plutian" <> schrieb im Newsbeitrag
    news:bmies5$55d$...
    > Hi all,
    >
    > I'm building a simple HTML editor using HTMLEditorKit. There are several
    > questions I would like to ask.
    >
    > 1. When I selected some text or object in the html, how could I get the

    html
    > code behind?
    >
    > 2. How can I insert the html code into the original html document with
    > appropriate location?


    public void insertHTML(HTMLDocument doc,
    int offset,
    String html,
    int popDepth,
    int pushDepth,
    HTML.Tag insertTag)
    throws BadLocationException,
    IOException


    Inserts HTML into an existing document.
    ak, Oct 15, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Mimic
    Replies:
    8
    Views:
    10,735
    Mike Mimic
    Apr 21, 2004
  2. Bill Tschumy
    Replies:
    1
    Views:
    3,175
  3. Gerrit Hulleman
    Replies:
    3
    Views:
    1,391
    Gerrit Hulleman
    Jul 27, 2004
  4. Nebojsa Topolscak
    Replies:
    3
    Views:
    557
    Jon Caldwell
    Jan 14, 2005
  5. tintac
    Replies:
    1
    Views:
    761
    Andrew Thompson
    Jan 29, 2005
Loading...

Share This Page