Open chrisburton opened 6 years ago
Did you resolve this issue? I have the exact same problem!
@Vingtoft This medium editor was part of a CMS I was using at the time. The CMS authors ended up going with a better alternative for their WYSIWYG editor. I was unable to solve the problem. Sorry!
The way my custom button works is:
<code class="foo">...</code>
However, the entire class attribute is stripped and I'm not sure why.
cleanPastedHtml
is set to false.Code
Result:
Desired Result: