PDA

View Full Version : HTMLEditor scroll



ljkmchale
30 May 2013, 7:11 AM
How do I make the HTMLEditor scroll to the bottom after I insert text?

friend
30 May 2013, 8:50 AM
Take a look at the HTMLEditor's scrollBy (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.field.HtmlEditor-method-scrollBy) method.

ljkmchale
31 May 2013, 6:47 AM
have tried both the scrollBy and the scrollTo and neither is working. Not sure why... Answers is my HTMLEditor.



Ext.getCmp('answers').scrollBy(0,10000,true);
var id = Ext.getCmp('answers').getId();
Ext.get(id).scrollTo('top',10000000,true);
Ext.getCmp('question').setValue('');

ljkmchale
7 Jun 2013, 7:25 AM
What does it mean by target element. The editor of the child of the editor? is there any example code out here to look at?