new ToastUIEditorViewer(options)viewer.jsline 35
Class ToastUIEditorViewer
PARAMETERS
Name Type Description options
object
Option object
PROPERTIES
Name Type Description el
HTMLElement
container element
initialValue
string
Editor's initial value
events
object
eventlist Event list
PROPERTIES
Name Type Description load
function
It would be emitted when editor fully load
change
function
It would be emitted when content changed
stateChange
function
It would be emitted when format change by cursor position
focus
function
It would be emitted when editor get focus
blur
function
It would be emitted when editor loose focus
hooks
object
Hook list
PROPERTIES
Name Type Description previewBeforeHook
function
Submit preview to hook URL before preview be shown
exts
[ Array ]
extensions
Resizable