Fix bug(When toolbar is undefined, toolbar not display)

This commit is contained in:
daihere 2017-07-19 09:45:53 +08:00
parent 30652f0bf3
commit c245702fef

View File

@ -1348,7 +1348,7 @@ function SimpleMDE(options) {
// Handle toolbar // Handle toolbar
if(options.toolbar !== false && options.toolbar instanceof Object) { if(options.toolbar === undefined || (options.toolbar !== false && options.toolbar instanceof Object)) {
// Initialize // Initialize
var toolbar = []; var toolbar = [];