The Light Text Editor Object

Light text editor object is text to HTML editor with basic styling functionality like font size, font family, ...

var lteSample = new TLightTextEditor(300, 200);
var wndTextEditorSample = createWindow('Light Text Editor Sample');

wndTextEditorSample.add(lteSample);
showModal(wndTextEditorSample);

Light Text editor constructor takes two parameters:

new TLightTextEditor(width, height);

Light Text Editor Methods and Properties
Method/Property Description
clear Clears text editor content
getContent Gets text editor HTML content
getText Gets text editor plain text
setContent Sets text editor HTML content. Form: setContent(content)
setOnValidation Sets validation callback. Form: setOnValidation(callback)
setText Sets text editor plain text content. Form: setText(text)