inacho / bootstrap-markdown-editor

Markdown editor for Bootstrap with preview, image upload support, shortcuts and other features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom buttons

Hyperbidule opened this issue · comments

Hello,
I think it would be great if we could customize the buttons to add more functionalities, like table or blockquote.
Thanks.

agreed, I'm looking for the same thing.

yeah, is it possible?

Has someone started developing this feature yet? We need this, too 😆

Hi guys, I've done it just last night :) its not hard.. here is how it looks like

Screenshot from 2020-04-01 12-54-43

I've added buttons for my needs: inline code, code block, clickable image in md format (basically when you click on image it acts as direct link to whatever image it is so it can be viewed in full size). video button (youtube, vimeo etc), bootstrap 4 icons in svg. I've also modified image button so when you paste link it will change ![text](http://) the bit in text and http together to the link as I rarely use [text] for images..but can be left as ![text](http://). What I would love to do is to have ![text] replaced with random number whenever the button is pressed however, I could not figure this out as whole thing is written in js and method known to me is only in html.. my bad. Perhaps I shall ask the author about this eh :)