BUG: link showing as span when getHtml() called
Question
Hi , @artf I using CKEDITOR for add link into selected text it is working fine . i am using this code to add link
var style = new CKEDITOR.style( { element : 'a', attributes : attributes } );
style.type = CKEDITOR.STYLE_INLINE;
style.applyToRange(range,this.linkData.editor)
it is showing as the above
also if i inspect the src it show a link in dom as blow
but when i getHtml() of component is show it as a span tag
Why this happen . And how to resolve this issue . Please let me know . Thank you
Answers (1)
@NoumanAhmad-Braqsol please follow the issue template when you open a BUG issue (indeed this is not a bug in the core but might be related to your ckeditor configuration), otherwise open a new Discussion
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2667
link element not append in head element in ediot.canvas #firefox #grapesjs
am trying to add google fonts in web-builder to change the font style for that to import am adding cdn in editor the code works in chrome a...
Issue #1232
How to change the margin from px to rem
Hi @artf, Hope you are doing fine. I have changed the margin settings from "px" to "rem" in one of the element using below code: { property...
Issue #1258
Style is not copying after cloning the element after Save
Hi @artf. At the first time before saving the template, When I make one element and clone it, the style is coming in the clonned element. T...
Issue #5795
BUG: How to add a addtional custom block manager like tab or section like block manager and style manager ,and add some blocks it to it?
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome v9 Reproducible demo link Describe...
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.