Page tree

Versions Compared

Key

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

...

Code Block
languagejs
themeEmacs
editor.setEventListener('beforePaste', function(data) {
	var htmltext = data.clipboardData.text;
	// 붙여넣을 DATA 처리
	editor.setContentsToPaste('<h1>사이냅에디터</h1>' + htmltext);
});