From c8748b32c854595afbf66b69cc5ad5570b92d691 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 12 Oct 2017 19:13:32 +0200 Subject: [PATCH] Update add doc in RichTextEditor --- src/rich_text_editor/index.js | 2 ++ 1 file changed, 2 insertions(+) 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()}`) * }); */