this.options.ownerDocument.execCommand throws an NS_ERROR_FAILURE when wrapped in an angular wrapper whenexecActionInternal() is called for the ordered and unordered list buttons.
It causes some weird behavior that duplicates the medium editor element's parent node several times.
Example:
before:
<div class="parent">
<p medium-editor class="medium-editor">I am an editor and the p tag is my editor element</p>
<div>Some sibling element</div>
</div>
after:
<div class="parent">
<p medium-editor class="medium-editor">I am an editor and the p tag is my editor element</p>
</div>
<div class="parent">
<div>Some sibling element</div>
</div>
Anyone have any idea that is and if there is a solution. It works fine as long as it is not used with Angular.
This is only an issue in Firefox.