Browse Source

Merge branch 'dev' of https://github.com/artf/grapesjs into dev

pull/5214/head
Artur Arseniev 3 years ago
parent
commit
f16638a0f3
  1. 4
      docs/api/rich_text_editor.md

4
docs/api/rich_text_editor.md

@ -65,8 +65,8 @@ rte.add('bold', {
});
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