mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-29 19:03:00 +02:00
Setting to disable toolbar guide icon
This commit is contained in:
parent
474b576521
commit
fcea866fb4
|
@ -56,6 +56,7 @@ simplemde.value();
|
||||||
- Optionally, you can set an array of status bar elements to include, and in what order.
|
- Optionally, you can set an array of status bar elements to include, and in what order.
|
||||||
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
|
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
|
||||||
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
|
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
|
||||||
|
- **toolbarGuideIcon**: If set to `false`, disable guide icon in the toolbar. Defaults to `true`.
|
||||||
- **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`.
|
- **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`.
|
||||||
- **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
|
- **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
|
||||||
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
|
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
|
||||||
|
|
|
@ -453,7 +453,6 @@ var toolbar = [{
|
||||||
className: "fa fa-eye",
|
className: "fa fa-eye",
|
||||||
title: "Toggle Preview (Ctrl+P)",
|
title: "Toggle Preview (Ctrl+P)",
|
||||||
},
|
},
|
||||||
"|",
|
|
||||||
{
|
{
|
||||||
name: "guide",
|
name: "guide",
|
||||||
action: "http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide",
|
action: "http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide",
|
||||||
|
@ -621,6 +620,9 @@ SimpleMDE.prototype.createToolbar = function(items) {
|
||||||
self.toolbar = {};
|
self.toolbar = {};
|
||||||
|
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
|
if(items[i].name == "guide" && self.options.toolbarGuideIcon === false)
|
||||||
|
continue;
|
||||||
|
|
||||||
(function(item) {
|
(function(item) {
|
||||||
var el;
|
var el;
|
||||||
if (item === '|') {
|
if (item === '|') {
|
||||||
|
|
Loading…
Reference in a new issue