From 8e89d8a75a5b403422ab9f5ad4d55eb3ed98a4f3 Mon Sep 17 00:00:00 2001 From: Ai Anshu <68537640+gxanshu@users.noreply.github.com> Date: Tue, 4 Jul 2023 15:01:36 +0530 Subject: [PATCH] Update rich_text_editor.md (#5201) The previous code snippet encountered a syntax error when attempting to use it in my application. To ensure its usability for others, I have made necessary updates to resolve the syntax error and enable successful execution. These modifications aim to provide a code snippet that can be easily utilized by anyone without encountering any syntax-related issues. --- docs/api/rich_text_editor.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/rich_text_editor.md b/docs/api/rich_text_editor.md index c9697be9a..36fa78013 100644 --- a/docs/api/rich_text_editor.md +++ b/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(`${rte.selection()}`) }); // An example with fontSize