Quote extends Element
The API model used to edit quotation marks.
Methods
append(html)
- html <String> HTML String to append.
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>');
prepend(html)
- html <String> HTML String to append.
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>');
remove()
Removes the Element itself.
IF ALL ELEMENTS ARE REMOVED, ERRORS MAY OCCUR IN SUBSEQUENT OPERATIONS.
var quote = editor.getAPIModelById('id'); quote.remove();
replace(html)
- html <String> The HTML String to replace.
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>');
setHTML(html)
- html <String> HTML string to set inside quotes
인자로 넘겨받은 HTML 문자열값을 인용기호의 내부 HTML로 설정합니다.
var quote = editor.getAPIModelById('id'); quote.setHTML('<p><span>Add HTML. All previously entered information will be erased.</span></p>');
setText(text)
- text <String> Text string to set inside quotation marks
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.');