Issue #1358💬 AnsweredOpened August 13, 2018by alimajed930 reactions

Create link only on "OK" button press

Quick answerby artf

1 - How can I check the implementation of the "Link" action of the richTextEditor in "demo newsletter editor" so I can replicate it? Since there and if the modal is closed without submitting, the link is no created. That modal is from CKEditor2-Why richTextEditor.exec('createLink', 'new'); or rte.insertHTML(<a class="...

Read full answer below ↓

Question

Hello everyone, I overwrote the default 'Link' acton of the rich text editor: <img width="1274" alt="screen shot 2018-08-13 at 1 58 43 pm" src="https://user-images.githubusercontent.com/28840780/44027999-2788cfaa-9f01-11e8-9f5e-e24d3ced19ed.png"> Now when clicked, a modal opens, where the user can add the desired url, the text display and the target and submits. Something similar to the implementation currently now available on "demo newsletter editor" using the "grapesjs-plugin-ckeditor" I think. <img width="1275" alt="screen shot 2018-08-13 at 1 56 45 pm" src="https://user-images.githubuser...

Answers (3)

artfAugust 13, 2018

1 - How can I check the implementation of the "Link" action of the richTextEditor in "demo newsletter editor" so I can replicate it? Since there and if the modal is closed without submitting, the link is no created. That modal is from CKEditor2-Why richTextEditor.exec('createLink', 'new'); or rte.i...

alimajed93August 13, 2018

Okay thank you for your quick response @artf How to keep the focus on the rte?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.