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

      0  

    Default Need to display a non editable HtmlEditor in a form

    Need to display a non editable HtmlEditor in a form


    Hi!

    In our application, we need to display some rendered HTML inside a form. This HtmlEditor will be used as a preview of a (HTML) mail to be send. The user cannot modify the content. An additional (editable) textarea has been added so that users can add their own comments before sending the mail.

    I would like to know if it is possible to add a non editable HtmlEditor to a Ext.FormPanel. I already removed the toolbar.


    Thank you

    Philippe

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Wouldn't it be a lot easier to use the StaticTextField user extension?

  3. #3
    Ext User
    Join Date
    Sep 2008
    Posts
    127
    Vote Rating
    0
    emmadi is on a distinguished road

      0  

    Default


    Hi
    Even i am in the need of Non editable html editor. i.e., preview of a html editor
    can you please tell me how did u achieved it
    and also what should i do to remove the Toolbar

    Thank you

  4. #4
    Ext User soze's Avatar
    Join Date
    Mar 2008
    Location
    UK
    Posts
    108
    Vote Rating
    0
    soze is on a distinguished road

      0  

    Default


    You can remove individual tool bar options with the following enabled or disabled as required by adding this to the html editor properties.
    Code:
    enableFont: false,
    enableFontSize: false,
    enableSourceEdit: false,
    enableAlignments: false,
    enableColors: false,
    enableFormat: false,
    enableLinks: false,
    enableLists: false

  5. #5
    Ext User soze's Avatar
    Join Date
    Mar 2008
    Location
    UK
    Posts
    108
    Vote Rating
    0
    soze is on a distinguished road

      0  

    Default


    I'm also interested in a clean way to disable the html editor because the textual preview it provides is MUCH better that the textarea, especially when displaying HTML rich content.

  6. #6
    Ext User
    Join Date
    Sep 2008
    Posts
    127
    Vote Rating
    0
    emmadi is on a distinguished road

      0  

    Default


    Ya thanks for the reply
    i could hide the toolbar .....but how can i make the textarea as non editable....or readonly....

  7. #7
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    jwien3 is on a distinguished road

      0  

    Default


    Bump. I am also interested in a read-only/non-editable HTMLEditor. Is there a clean way to do this?

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