Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

릴리즈 2.10.0 이상

붙여넣을 html contents를 설정합니다. beforePaste 이벤트에서 클립보드 DATA를 보정해서 설정하는데 사용합니다.

Parameters:

Name

Type

Description

htmlString

실제 에디터에 붙여넣을 HTML DATA

Example:

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


관련 API


  • No labels