Browse Source

Fixed flowChart & sequenceDiagram is not a function #356

develop
pandao 6 years ago
parent
commit
f632b1cf53
  1. 24
      editormd.amd.js
  2. 2
      editormd.amd.min.js
  3. 24
      editormd.js
  4. 2
      editormd.min.js
  5. 2
      lib/codemirror/modes.min.js
  6. 24
      src/editormd.js

24
editormd.amd.js

@ -1524,11 +1524,19 @@
return this;
}
previewContainer.find(".flowchart").flowChart();
var $flowchart = previewContainer.find(".flowchart");
if ($flowchart.length > 0) {
$flowchart.flowChart();
}
}
if (settings.sequenceDiagram) {
previewContainer.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = previewContainer.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
var preview = $this.preview;
@ -3867,11 +3875,19 @@
if (!editormd.isIE8) {
if (settings.flowChart) {
div.find(".flowchart").flowChart();
var $flowChart = div.find(".flowchart");
if ($flowChart.length > 0) {
$flowChart.flowChart();
}
}
if (settings.sequenceDiagram) {
div.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = div.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
}

2
editormd.amd.min.js

File diff suppressed because one or more lines are too long

24
editormd.js

@ -1454,11 +1454,19 @@
return this;
}
previewContainer.find(".flowchart").flowChart();
var $flowchart = previewContainer.find(".flowchart");
if ($flowchart.length > 0) {
$flowchart.flowChart();
}
}
if (settings.sequenceDiagram) {
previewContainer.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = previewContainer.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
var preview = $this.preview;
@ -3797,11 +3805,19 @@
if (!editormd.isIE8) {
if (settings.flowChart) {
div.find(".flowchart").flowChart();
var $flowChart = div.find(".flowchart");
if ($flowChart.length > 0) {
$flowChart.flowChart();
}
}
if (settings.sequenceDiagram) {
div.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = div.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
}

2
editormd.min.js

File diff suppressed because one or more lines are too long

2
lib/codemirror/modes.min.js

File diff suppressed because one or more lines are too long

24
src/editormd.js

@ -1442,11 +1442,19 @@
return this;
}
previewContainer.find(".flowchart").flowChart();
var $flowchart = previewContainer.find(".flowchart");
if ($flowchart.length > 0) {
$flowchart.flowChart();
}
}
if (settings.sequenceDiagram) {
previewContainer.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = previewContainer.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
var preview = $this.preview;
@ -3785,11 +3793,19 @@
if (!editormd.isIE8) {
if (settings.flowChart) {
div.find(".flowchart").flowChart();
var $flowChart = div.find(".flowchart");
if ($flowChart.length > 0) {
$flowChart.flowChart();
}
}
if (settings.sequenceDiagram) {
div.find(".sequence-diagram").sequenceDiagram({theme: "simple"});
var $sequenceDiagram = div.find(".sequence-diagram");
if ($sequenceDiagram.length > 0) {
$sequenceDiagram.sequenceDiagram({theme: "simple"});
}
}
}

Loading…
Cancel
Save