[QUESTION] Grapes js not Recognize a link if i change a text into link .
Question
Hi @artf
i am new at grapes js i write a function to convert seleted text into link . it works fine.
var selectedText = editor.getSelection().getNative();
editor.insertHtml("<a href=\""+link+"\" title=\""+title+"\" target=\""+target+"\">" + selectedText + "</a>");
when i select the component type It say it is a text . After refresh the page it Recognize a link. but i dont want to refresh it . How to do this ?
you can see above "Advantage" is a link now but in console it show it is a text
Answers (3)
Are you talking about the CKEditor or the default RTE?
I am using CKEditor .
This is not the right repository then
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1470
[Question] Possible memory leaks
Hi, I am working on a project with Angular 6 and I am investigating a memory leak after destroying the editor on _previousAttributes and po...
Issue #2926
[Question] How to realize click hyperlink jump?
hi @artf I want to implement dynamic link jump in grapes JS, but I can't find an effective method. Can you help me?
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 #394
Text: New div is created every time I hit enter instead of creating a </br>
Hi @artf Is there a reason why when inserting text a new div is created for every break instead of a standard </br> Is it possible to disab...
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.