diff --git a/src/rich_text_editor/index.js b/src/rich_text_editor/index.js index de8e750d7..1ffa69c2b 100644 --- a/src/rich_text_editor/index.js +++ b/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(`${rte.selection()}`) * }); */