Closed heyallan closed 3 years ago
I don't think this change is necessary.
However you can change the icon yourself if you change in: site/fields/markdown/assets/js/visualmarkdowneditor.js on line 198: classname: 'fa fa-font'
Because font-awesome does not provide any other fonts (like A1, A2, A3) you would run into trouble there. Check the full list here of supported icons here: http://fontawesome.io/icons/
I still think making the toolbar more modular is a good idea.
I accidentally created a feature request much along the same lines before seeing this one. I don't agree with the redesign but I do fully agree with adding the other 4 headers. This, along with adding code snippets, seems like a simple and obvious next step, as they are the two main things keeping this plugin from being a complete markdown editor.
The attached photo is of github's comment editor - they include the code block button and I like how they handle making more room with the header dropdown menu. The icon github uses would not only solve Allan's design problem, but makes more sense to people who are not familiar with markdown and are used to something like ms word (which is likely if a developer is installing a visual editor for the content writer, as it is in my case).
Implementing anything along the lines of @coderica's suggestion might be an option for a later release.
Add optional buttons for all headings
h1
toh6
Also: Don't use
H
character for headings in button label because it only makes sense for english speakers.Use 'A' character instead:
Output would look like this: