mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
added support for text-based toolbar options
Added the ability to pass innerHTML text for toolbar icon anchors.
This commit is contained in:
parent
6abda7ab68
commit
52cba119f4
@ -108,6 +108,10 @@ function createIcon(options, enableTooltips, shortcuts) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(options.innerHTML) {
|
||||||
|
el.innerHTML = options.innerHTML;
|
||||||
|
}
|
||||||
|
|
||||||
el.tabIndex = -1;
|
el.tabIndex = -1;
|
||||||
el.className = options.className;
|
el.className = options.className;
|
||||||
return el;
|
return el;
|
||||||
@ -2025,4 +2029,4 @@ SimpleMDE.prototype.toTextArea = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = SimpleMDE;
|
module.exports = SimpleMDE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user