Results 1 to 2 of 2

Thread: Chat text editor with HtmlEditor - Problems to keep the format of the words

  1. #1
    Sencha User
    Join Date
    Aug 2007
    Location
    Blumenau/SC - Brazil
    Posts
    7

    Default Chat text editor with HtmlEditor - Problems to keep the format of the words

    Hi everybody

    I'm trying to make a chat text editor with HtmlEditor widget.
    And I need save the text format before the text send and restore the text format after I clear the value.

    I have the html tag's in array and string variables, like this:
    Code:
    var arrStart = ["<font face='tahoma'>", "<b>"];
    var strStar = "<font face='tahoma'><b>";
    
    var arrEnd = ["</font>", "</b>"];
    var strEnd = "</font></b>";
    My problem is:
    When I set the htmlEditor Value with 'strStart+strEnd' the pointer of the cursor appear next the html tags and don't get the format.
    And when I set the value just with 'strStart', Ext close the tags for me and happen the same thing.

    All I need is to keep the format after I send the current text.

    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Aug 2007
    Location
    Blumenau/SC - Brazil
    Posts
    7

    Default

    up (Y)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •