Open wimleers opened 6 years ago
<svg></svg>
<p> </p>
https://codepen.io/msamsel/pen/RxxKGK
See also #1379 for different use cases.
Other issues exist with SVGs where if a embeded SVG anchor tags contains "xlink:href"
Ex: <a xlink:href="/index.html">Home</a>
the editor will strip off the xlink resulting in
<a href="/index.html" xlink:="">Home</a>
Any progress on this issue?
@diskortsev No progress on this issue as we have other priorities at the moment.
Good news. Just discovered that the bug is not reproducible in CKeditor 4.12.1
@diskortsev Are you sure? It still seems to be reproducible on https://codepen.io/f1ames/pen/JQQoyY. Can you confirm?
@f1ames In your codepen I could reproduce it as well. I have found the situation when it is not reproducible. The
A solution that will blow your mind ;-) Just wrap your <svg>
with <div>
and it will not be adding <p> </p>
anymore.
<div><svg></svg></div>
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
First reported at https://www.drupal.org/project/drupal/issues/2934332.
<svg class="icon-svg" height="200" width="200"><use xlink:href="/themes/mytheme/images/svg-defs.svg?v=1.0#icon-name"></use></svg>
Expected result
Only the entered HTML exists.
Actual result
Observe
<p> </p>
appearing, and hence many empty paragraphs appearing. Without them ever having been entered.Other details
build-config.js