merge accident changes from master back.

This commit is contained in:
colo 2017-09-16 15:01:36 +08:00
commit 5b2ba531e8

View File

@ -632,11 +632,11 @@ function drawLink(editor) {
/**
* Action for drawing an img.
*/
function drawImage(editor) {
function drawImage(editor, url) {
var cm = editor.codemirror;
var stat = getState(cm);
var options = editor.options;
var url = "http://";
url || (url = "http://");
if(options.promptURLs) {
url = prompt(options.promptTexts.image);
if(!url) {
@ -2007,6 +2007,9 @@ SimpleMDE.prototype.drawLink = function() {
SimpleMDE.prototype.drawImage = function() {
drawImage(this);
};
SimpleMDE.prototype.drawImageUrl = function(url) {
drawImage(this, url);
};
SimpleMDE.prototype.drawTable = function() {
drawTable(this);
};