How i can allow html5 a tag

Mar 3 at 2:41 AM
i want allow a tag wrap:
<a href="#"><p>content</p></a>
But after save, CKE auto convert to <p><a href="#">content</a></p>
How i can keep a wrapping any block
Coordinator
Mar 30 at 9:45 AM
thienvc wrote:
i want allow a tag wrap:
<a href="#"><p>content</p></a>
But after save, CKE auto convert to <p><a href="#">content</a></p>
How i can keep a wrapping any block
Yes by default what would not work since a p tag inside an a tag is not valid html4 content, and the editor doesnt support the html5 yet. This maybe change with Ckeditor 5.

As workaround you could use the protectSource Setting in the Editor Config and add
/<a[\s\S]*?>[\s\S]*?<\/a>/gi
to the list