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

Set the paragraph in which the caret is positioned as quotation.

When there is a selection, the selected paragraphs are set as a quotation.


Parameters:

NameTypeDescription
actionNameString'increaseQuote' quotation setting API
propertiesObject

{  id: {String}, class: {String}, style: {Object} }


Example:

editor.execCommand('increaseQuote'); // Insert quote
editor.execCommand('increaseQuote', { style: { backgroundColor: { r: 255, g: 0, b: 0 } } }); // Insert quote with background color
editor.execCommand('increaseQuote', { className: 'custom-class-name' }); // Insert quote with class name
  • No labels