[Question]: Would it be possible to have change settings under style manager in a way that it has href when a link is created?
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)
@SeongwoonHong you can do whatever you want by adding your custom action to RTE https://grapesjs.com/docs/api/rich_text_editor.html#add
@SeongwoonHong you can do whatever you want by adding your custom action to RTE https://grapesjs.com/docs/api/rich_text_editor.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 created... so what I'd like to do is the moment you click link button in RTE, i'd like to open 'Settings' and it should have href and title and stuff underneath...
Thank you.
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.
Issue #1675
[Question] How to make 'Settings' has 'title', 'href' ,'title' manually?
Hi Artur, Usually, 'Settings' has 'Id' and 'Title'. However, when you click any text that has become link, 'Settings' now has 'title', 'hre...
Issue #921
[QUESTION] Select and focus an html element from a panel button
Hi everyone, Is it possible to set focus in a section html with Grapes, like as an anchor? I have a panel button and it just select the sec...
Issue #428
Change the background of the body
Hello, First of all, I want to thank you for this amazing project! I have few a questions regarding the editor, and more precisely the news...
Issue #839
[QUESTION] Create custom selected component settings
There is a option in panel to change setting of component (For links, there is an option no change link - HREF - and target, for texts, id...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.