1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    21
    Vote Rating
    0
    kannanth is on a distinguished road

      0  

    Default HtmlEditor - How to get Plain Text value?

    HtmlEditor - How to get Plain Text value?


    Hello All,

    Can anyone suggest on how to get the 'plain text' value from the HtmlEditor? I have an application in which the user entered text can be e-mailed later. Depending on user settings they can get either HTML or plain text messages. I would expect the non-html version to be similar to a value extracted from a TextArea.

    My apologies if this was already addressed in a different thread. I did my best to lookup but did not find much.

    Thanks in advance.

    - Kannan

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,123
    Vote Rating
    512
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Google around and find a regex to strip html: http://zamov.online.fr/EXHTML/DHTML/DHTML_983246.html

  3. #3
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    You would want to do something like this...

    Code:
    var bla = Ext.util.Format.stripTags(your_field.getValue());

  4. #4
    Ext User
    Join Date
    Jan 2008
    Posts
    21
    Vote Rating
    0
    kannanth is on a distinguished road

      0  

    Default Thanks!

    Thanks!


    Thanks a lot guys.

  5. #5
    Sencha User
    Join Date
    May 2013
    Posts
    1
    Vote Rating
    0
    gautamm is on a distinguished road

      0  

    Default Still not able to get plain text

    Still not able to get plain text


    I am using the <ext:Htmleditor> inside a
    <ext.window><content>

    is that a problem?

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar