Issue #1639💬 AnsweredOpened December 7, 2018by SeongwoonHong0 reactions

Would it be possible to have change settings under style manager in a way that it has href when a link is created?

Quick answerby artf

@SeongwoonHong you can do whatever you want by adding your custom action to RTE https://grapesjs.com/docs/api/richtexteditor.html#add

Read full answer below ↓

Question

I'm using preset newsletter with built-in RTE (do not want to use ck editor like the demo)

In order to make any text to link, i need to click the link button in the RTE and lose the focus and re-click the text again in order to see Settings that has href in it. Is there any way to do it in a way that the moment i click the link button in the RTE, i have settings that have href in it and opened it..

Thank you Artur :)

Answers (3)

SeongwoonHongDecember 10, 2018

@SeongwoonHong you can do whatever you want by adding your custom action to RTEhttps://grapesjs.com/docs/api/richtexteditor.html#add @artf I can't figure it out.. could you give me a sample code if you don't mind...? Can't figure out how to open settings that has href once a link component is creat...

artfDecember 12, 2018

Settings/Traits are for components. When you select the text there are no component, just a text, so probably you have to create your own panel (or Modal) with all the fields

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.