[Question] How to make 'Settings' has 'title', 'href' ,'title' manually?
Question
Hi Artur,
Usually, 'Settings' has 'Id' and 'Title'. However, when you click any text that has become link, 'Settings' now has 'title', 'href' and 'title'. How do i make this happen manually below...? (I'm trying to change 'Settings' the moment you click link in RTE)
editor.RichTextEditor.add('custom-link', {
icon: '<img src="assets/images/link.png" />',
attributes: {title: 'Link', class: 'gjs-rte-action'},
result: rte => {
// do something to make it happen..
rte.insertHTML(`<a href="#">${rte.selection()}</a>`)
}
});
Thank you so much Artur
Answers (3)
@artf Hi Artur, I've read it but what i'm trying to achieve is to open up (programatically) settings that is already defined . I'm not trying to add or modify anything.. I'm not sure how the information in the link comes in play in this case.... please let me know thank you so much
@artf I want that action happens when I click 'link' button in the built in RTE.. for webpage preset demo site, when you change text to link, you need to lose focus and re-click the text in order to see href under 'Settings'. But I want to simplify this action..
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1639
[Question]: Would it be possible to have change settings under style manager in a way that it has href when a link is created?
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 cli...
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...
Issue #1706
[Question]: How to get href from rte?
I have this rte toolbar where you can type and click 'save' and it's going to create a link for the selected text. but the problem is that...
Issue #818
[QUESTION] Open different Panel's view on click text element
How can I make "click" event on texts open different panel's view than StyleManager? I'm trying this:
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.