Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Alteration in markdown editor

+1 vote
asked Dec 24, 2017 in Plugins by Chiru

How to remove two options from the markdown editor?

See image:

Also how to customize the box (border) and a question mark on right with details, just as SO.

1 Answer

+1 vote
answered Dec 30, 2017 by Scott

The buttons are created in the JavaScript. The simplest method to remove them would be to hide them using this CSS:

#wmd-code-button-content, #wmd-heading-button-content { display: none; }

To fully remove the buttons, look in the file Markdown.Editor.js in the function makeSpritedButtonRow() and delete the appropriate line, e.g. the lines starting buttons.code or buttons.heading for the buttons you circled.

Then you'll need to put the 3 JS files together (Markdown.Converter.js, Markdown.Sanitizer.js, Markdown.Editor.js) and minify into markdown.min.js.