PDA

View Full Version : Html View of HtmlEditor



Vikram
18 Jan 2016, 11:12 PM
Hello there,
I am using ext4.2 htmleditor, my question is can we keep the formatting in htmlview as its showing in view ?
plz check he below screen.

view53881

I need to view as below when i switch to htmlview button.

53882

Hope you understand what i have meant to say

regards
vik

Gary Schlosberg
19 Jan 2016, 5:21 AM
Perhaps you need to use the toggleSourceEdit (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.HtmlEditor-method-toggleSourceEdit) method to switch over to the source editing mode?

Vikram
19 Jan 2016, 5:51 AM
Hello Gary, I am getting the "Source Edit" button but html displaying in one line.. i need to show line by line so user can edit easily...

Gary Schlosberg
19 Jan 2016, 3:51 PM
Oh I see. Nothing built-in to do that. Perhaps you could hook up a formatter to the editmodechange (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.HtmlEditor-event-editmodechange) event.