Browse Source

Up RTE doc

pull/5214/head
Artur Arseniev 3 years ago
parent
commit
1cc3919f07
  1. 4
      src/rich_text_editor/index.ts

4
src/rich_text_editor/index.ts

@ -200,8 +200,8 @@ export default class RichTextEditorModule extends Module<RichTextEditorConfig &
* });
* rte.add('link', {
* icon: document.getElementById('t'),
* attributes: {title: 'Link',}
* // Example on it's easy to wrap a selected content
* attributes: { title: 'Link' },
* // Example on how to wrap selected content
* result: rte => rte.insertHTML(`<a href="#">${rte.selection()}</a>`)
* });
* // An example with fontSize

Loading…
Cancel
Save