|
|
|
@ -1364,6 +1364,8 @@ function SimpleMDE(options) {
|
|
|
|
|
// Merging the shortcuts, with the given options
|
|
|
|
|
options.shortcuts = extend({}, shortcuts, options.shortcuts || {});
|
|
|
|
|
|
|
|
|
|
options.minHeight = options.minHeight || "300px";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Change unique_id to uniqueId for backwards compatibility
|
|
|
|
|
if(options.autosave != undefined && options.autosave.unique_id != undefined && options.autosave.unique_id != "")
|
|
|
|
@ -1499,6 +1501,8 @@ SimpleMDE.prototype.render = function(el) {
|
|
|
|
|
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.codemirror.getScrollerElement().style.minHeight = options.minHeight;
|
|
|
|
|
|
|
|
|
|
if(options.forceSync === true) {
|
|
|
|
|
var cm = this.codemirror;
|
|
|
|
|
cm.on("change", function() {
|
|
|
|
|