medium-editor-insert-plugin
medium-editor-insert-plugin copied to clipboard
Insert plugin does not adhere to Medium Editor button class conventions
I'm currently using Medium Editor in combination with the Insert Plugin, but I have noticed that the Insert Plugin does not apply the same classes to their toolbar buttons, which makes styling them beyond the defaults unintuitive.
Medium Editor toolbar DOM classes:
<div class="medium-editor-toolbar [...] medium-toolbar-arrow-under">
<ul class="medium-editor-toolbar-actions">
<li>
<button class="medium-editor-action medium-editor-button-first">
[button1 content]
</button>
</li>
<li>
<button class="medium-editor-action">
[button2 content]
</button>
</li>
<li>
<button class="medium-editor-action medium-editor-button-last">
[button3 content]
</button>
</li>
</ul>
</div>
However, the Insert Plugin will only add the "medium-editor-action" class to the buttons, not the "medium-editor-button-first" or "medium-editor-button-last".
Apparently, Medium Editor added those classes only recently. I will mark this as an enhancement, so we'll remember to add them too.
Great, thanks!
any updates or methods to implement the buttons to the medium editor buttons? or perhaps the other way around
@StuckInLoop Your question is totally unrelated to this issue, but here is an answer: https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Custom-addons