Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:27:05 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to set last line visible in TextEditor  (Read 972 times)
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« on: July 20, 2011, 02:26:12 PM »

When adding text to the TextEditor, how can I set the last line visible afterwards?
Thanks.
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: July 20, 2011, 06:01:19 PM »

var node = this.ctl_texteditor1.getSubNode('INPUT');
node.scrollTop(node.scrollHeight());
Logged
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« Reply #2 on: July 21, 2011, 07:23:21 AM »

That works. Thank you. The key was getSubNode('INPUT').
Logged
John009
Newbie
*
Posts: 2


View Profile
« Reply #3 on: July 25, 2011, 01:24:13 AM »

The implementation should initially present the TextEditor with minimal decoration; only the caret should be shown at the requested text insertion position. It is then the responsibility of the application to draw any additional decoration like focus highlight, border or scroll bar.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!