Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEmacs
var celldiv = editor.getAPIModelById('id');
celldiv.append('<span>TEXT</span>');

...

Code Block
languagejs
themeEmacs
var celldiv = editor.getAPIModelById('id');
celldiv.prepend('<span>TEXT</span>');

...

Code Block
languagejs
themeEmacs
var paragraphdiv = editor.getAPIModelById('id');
paragraphdiv.remove();

replace(html)

  • html <String> 교체할 HTML String.

...

Code Block
languagejs
themeEmacs
var paragraphdiv = editor.getAPIModelById('id');
paragraphdiv.replace('<p><span>Paragraph<p><span>Div replaced</span></p>');

setText(text)

...

Code Block
languagejs
themeEmacs
var celldiv = editor.getAPIModelById('id');
celldiv.setText('텍스트입니다.');

setHeight(value[, unit = 'px'])

...

Code Block
languagejs
themeEmacs
var tablediv = editor.getAPIModelById('id');
tablediv.setHeight(200);
tablediv.setHeight(200, 'px');

setWidth(value[, unit = 'px'])

...

Code Block
languagejs
themeEmacs
var tablediv = editor.getAPIModelById('id');
tablediv.setWidth(400);
tablediv.setWidth(100, '%');