The API model used to edit quotation marks.
The HTML String passed as an argument is added as a child at the back of the Element.
var quote = editor.getAPIModelById('id'); quote.append('<span>TEXT</span>'); |
The HTML String passed as an argument is added as a child to the front of the Element.
var quote = editor.getAPIModelById('id'); quote.prepend('<span>TEXT</span>'); |
Removes the Element itself.
var quote = editor.getAPIModelById('id'); quote.remove(); |
Replaces the element itself with the HTML String passed as an argument.
var quote = editor.getAPIModelById('id'); quote.replace('<p><span>Quote replaced</span></p>'); |
인자로 넘겨받은 HTML 문자열값을 인용기호의 내부 HTML로 설정합니다.
var quote = editor.getAPIModelById('id'); quote.setHTML('<p><span>Add HTML. All previously entered information will be erased.</span></p>'); |
Set the text string value passed as an argument to the internal text of quotation marks.
var quote = editor.getAPIModelById('id'); quote.setText('Sample text.'); |