Issue #1675Opened December 20, 2018by SeongwoonHong0 reactions

[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)

SeongwoonHongDecember 21, 20180 reactions

@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

SeongwoonHongDecember 21, 20180 reactions

@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.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.