Skip to content

Commit 73e5e5f

Browse files
author
Wes Cossick
committed
Change replaceTexts to insertTexts
1 parent c1c8de5 commit 73e5e5f

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

debug/simplemde.debug.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debug/simplemde.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13065,7 +13065,7 @@ function drawLink(editor) {
1306513065
var cm = editor.codemirror;
1306613066
var stat = getState(cm);
1306713067
var options = editor.options;
13068-
_replaceSelection(cm, stat.link, options.replaceTexts.link);
13068+
_replaceSelection(cm, stat.link, options.insertTexts.link);
1306913069
}
1307013070

1307113071
/**
@@ -13075,7 +13075,7 @@ function drawImage(editor) {
1307513075
var cm = editor.codemirror;
1307613076
var stat = getState(cm);
1307713077
var options = editor.options;
13078-
_replaceSelection(cm, stat.image, options.replaceTexts.image);
13078+
_replaceSelection(cm, stat.image, options.insertTexts.image);
1307913079
}
1308013080

1308113081
/**
@@ -13085,7 +13085,7 @@ function drawHorizontalRule(editor) {
1308513085
var cm = editor.codemirror;
1308613086
var stat = getState(cm);
1308713087
var options = editor.options;
13088-
_replaceSelection(cm, stat.image, options.replaceTexts.horizontalRule);
13088+
_replaceSelection(cm, stat.image, options.insertTexts.horizontalRule);
1308913089
}
1309013090

1309113091

@@ -13574,7 +13574,7 @@ var toolbarBuiltInButtons = {
1357413574
}
1357513575
};
1357613576

13577-
var replaceTexts = {
13577+
var insertTexts = {
1357813578
link: ["[", "](http://)"],
1357913579
image: ["![](http://", ")"],
1358013580
horizontalRule: ["", "\n\n-----\n\n"]
@@ -13652,8 +13652,8 @@ function SimpleMDE(options) {
1365213652
options.parsingConfig = options.parsingConfig || {};
1365313653

1365413654

13655-
// Merging the replaceTexts, with the given options
13656-
options.replaceTexts = extend({}, replaceTexts, options.replaceTexts || {});
13655+
// Merging the insertTexts, with the given options
13656+
options.insertTexts = extend({}, insertTexts, options.insertTexts || {});
1365713657

1365813658

1365913659
// Update this options

src/js/simplemde.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function drawLink(editor) {
269269
var cm = editor.codemirror;
270270
var stat = getState(cm);
271271
var options = editor.options;
272-
_replaceSelection(cm, stat.link, options.replaceTexts.link);
272+
_replaceSelection(cm, stat.link, options.insertTexts.link);
273273
}
274274

275275
/**
@@ -279,7 +279,7 @@ function drawImage(editor) {
279279
var cm = editor.codemirror;
280280
var stat = getState(cm);
281281
var options = editor.options;
282-
_replaceSelection(cm, stat.image, options.replaceTexts.image);
282+
_replaceSelection(cm, stat.image, options.insertTexts.image);
283283
}
284284

285285
/**
@@ -289,7 +289,7 @@ function drawHorizontalRule(editor) {
289289
var cm = editor.codemirror;
290290
var stat = getState(cm);
291291
var options = editor.options;
292-
_replaceSelection(cm, stat.image, options.replaceTexts.horizontalRule);
292+
_replaceSelection(cm, stat.image, options.insertTexts.horizontalRule);
293293
}
294294

295295

@@ -778,7 +778,7 @@ var toolbarBuiltInButtons = {
778778
}
779779
};
780780

781-
var replaceTexts = {
781+
var insertTexts = {
782782
link: ["[", "](http://)"],
783783
image: ["![](http://", ")"],
784784
horizontalRule: ["", "\n\n-----\n\n"]
@@ -856,8 +856,8 @@ function SimpleMDE(options) {
856856
options.parsingConfig = options.parsingConfig || {};
857857

858858

859-
// Merging the replaceTexts, with the given options
860-
options.replaceTexts = extend({}, replaceTexts, options.replaceTexts || {});
859+
// Merging the insertTexts, with the given options
860+
options.insertTexts = extend({}, insertTexts, options.insertTexts || {});
861861

862862

863863
// Update this options

0 commit comments

Comments
 (0)