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,803
    Vote Rating
    606
    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
    8
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi