mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-07-03 08:04:28 -06:00
Hide trailing separators respects hidden icons
This commit is contained in:
parent
6bda28300d
commit
1a79eefadb
File diff suppressed because one or more lines are too long
@ -14540,7 +14540,9 @@ SimpleMDE.prototype.createToolbar = function(items) {
|
|||||||
var nonSeparatorIconsFollow = false;
|
var nonSeparatorIconsFollow = false;
|
||||||
|
|
||||||
for(var x = (i + 1); x < items.length; x++) {
|
for(var x = (i + 1); x < items.length; x++) {
|
||||||
if(items[x] !== "|") {
|
console.log(x);
|
||||||
|
if(items[x] !== "|" && (!self.options.hideIcons || self.options.hideIcons.indexOf(items[x].name) == -1)) {
|
||||||
|
console.log(items[x]);
|
||||||
nonSeparatorIconsFollow = true;
|
nonSeparatorIconsFollow = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1649,7 +1649,9 @@ SimpleMDE.prototype.createToolbar = function(items) {
|
|||||||
var nonSeparatorIconsFollow = false;
|
var nonSeparatorIconsFollow = false;
|
||||||
|
|
||||||
for(var x = (i + 1); x < items.length; x++) {
|
for(var x = (i + 1); x < items.length; x++) {
|
||||||
if(items[x] !== "|") {
|
console.log(x);
|
||||||
|
if(items[x] !== "|" && (!self.options.hideIcons || self.options.hideIcons.indexOf(items[x].name) == -1)) {
|
||||||
|
console.log(items[x]);
|
||||||
nonSeparatorIconsFollow = true;
|
nonSeparatorIconsFollow = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user