Browse Source

Update add doc in RichTextEditor

pull/415/head
Artur Arseniev 9 years ago
parent
commit
c8748b32c8
  1. 2
      src/rich_text_editor/index.js

2
src/rich_text_editor/index.js

@ -129,8 +129,10 @@ module.exports = () => {
* });
* rte.add('link', {
* icon: document.getElementById('t'),
* // Bind the 'result' on 'onclick' listener
* event: 'click',
* attributes: {title: 'Link',}
* // Example on it's easy to wrap a selected content
* result: rte => rte.insertHTML(`<a href="#">${rte.selection()}</a>`)
* });
*/

Loading…
Cancel
Save