Editable Text Web Part Rewriting Code

Douglas Bland asked on October 17, 2020 01:24

I am trying to put an image and an h3 tag inside an a tag in an Editable Text web part, but Kentico rewrites the code and splits the a tags, making 2 a tags, one around the image and one around the h3. How would I get this to stop? Here is what I am trying to write:

And here is what Kentico rewrites it as:

Recent Answers


Brenden Kehren answered on October 17, 2020 04:21

Kentico is not rewriting it. The CKEditor is performing validation on the field and finding you have invalid HTML. You need to review the configuration of the CKEditor and find out how to stop that validation. This article has a bunch of helpful tips and links to check out.

1 votesVote for this answer Mark as a Correct answer

Douglas Bland answered on October 21, 2020 06:48

Thanks for the answer. I know that something is rewriting it. because it gets rewritten, And I confess, I know it's bad code, though we've gotten away with it elsewhere. Not this time! The answer we found though was to move the :hover psuedo-class up the chain to the overarching div, and then call out each element below. That way when you rollover one, it triggers them all.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.