mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
merge accident changes from master back.
This commit is contained in:
commit
5b2ba531e8
@ -632,11 +632,11 @@ function drawLink(editor) {
|
|||||||
/**
|
/**
|
||||||
* Action for drawing an img.
|
* Action for drawing an img.
|
||||||
*/
|
*/
|
||||||
function drawImage(editor) {
|
function drawImage(editor, url) {
|
||||||
var cm = editor.codemirror;
|
var cm = editor.codemirror;
|
||||||
var stat = getState(cm);
|
var stat = getState(cm);
|
||||||
var options = editor.options;
|
var options = editor.options;
|
||||||
var url = "http://";
|
url || (url = "http://");
|
||||||
if(options.promptURLs) {
|
if(options.promptURLs) {
|
||||||
url = prompt(options.promptTexts.image);
|
url = prompt(options.promptTexts.image);
|
||||||
if(!url) {
|
if(!url) {
|
||||||
@ -2007,6 +2007,9 @@ SimpleMDE.prototype.drawLink = function() {
|
|||||||
SimpleMDE.prototype.drawImage = function() {
|
SimpleMDE.prototype.drawImage = function() {
|
||||||
drawImage(this);
|
drawImage(this);
|
||||||
};
|
};
|
||||||
|
SimpleMDE.prototype.drawImageUrl = function(url) {
|
||||||
|
drawImage(this, url);
|
||||||
|
};
|
||||||
SimpleMDE.prototype.drawTable = function() {
|
SimpleMDE.prototype.drawTable = function() {
|
||||||
drawTable(this);
|
drawTable(this);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user