Issue #3644Opened July 26, 2021by NoumanAhmad-Braqsol0 reactions

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)

asdasd

it is showing as the above also if i inspect the src it show a link in dom as blow sdsd

but when i getHtml() of component is show it as a span tag zxc

Why this happen . And how to resolve this issue . Please let me know . Thank you

Answers (1)

artfJuly 31, 20210 reactions

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

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.