Skip to content

Commit

Permalink
HtmlEditor: use showdown package instead of devextreme-showdown (T122…
Browse files Browse the repository at this point in the history
…3917) (#3187)

* HtmlEditor: use showdown package instead of devextreme-showdown (T1223917)

* concrete version
  • Loading branch information
EugeniyKiyashko authored Apr 5, 2024
1 parent 46ff8b3 commit ed910c1
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="../../../../../node_modules/angular/angular.min.js"></script>
<script src="../../../../../node_modules/devextreme-quill/dist/dx-quill.min.js"></script>
<script src="../../../../../node_modules/turndown/dist/turndown.js"></script>
<script src="../../../../../node_modules/devextreme-showdown/dist/showdown.js"></script>
<script src="../../../../../node_modules/showdown/dist/showdown.js"></script>
<script src="../../../../../node_modules/devextreme-dist/js/dx.all.js"></script>
<script src="../../../../../node_modules/prettier/standalone.js"></script>
<script src="../../../../../node_modules/prettier/parser-html.js"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Our HtmlEditor outputs the markup in HTML and Markdown formats. To specify the format, use the [valueType](/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#valueType) property. If you use Markdown, link the <a href="https://www.npmjs.com/package/turndown" target="_blank" rel="noopener">turndown</a> and <a href="https://www.npmjs.com/package/devextreme-showdown" target="_blank" rel="noopener">devextreme-showdown</a> libraries before the DevExtreme scripts.
Our HtmlEditor outputs the markup in HTML and Markdown formats. To specify the format, use the [valueType](/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#valueType) property. If you use Markdown, link the <a href="https://www.npmjs.com/package/turndown" target="_blank" rel="noopener">turndown</a> and <a href="https://www.npmjs.com/package/showdown" target="_blank" rel="noopener">showdown</a> libraries before the DevExtreme scripts.

The HtmlEditor stores the markup in the [value](/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#value) property. In this demo, the value is displayed under the HtmlEditor. You can click the Html and Markdown buttons to switch between output formats.
2 changes: 1 addition & 1 deletion JSDemos/Demos/HtmlEditor/OutputFormats/jQuery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="../../../../../node_modules/devextreme-dist/css/dx.light.css" />
<script src="../../../../../node_modules/devextreme-quill/dist/dx-quill.min.js"></script>
<script src="../../../../../node_modules/turndown/dist/turndown.js"></script>
<script src="../../../../../node_modules/devextreme-showdown/dist/showdown.js"></script>
<script src="../../../../../node_modules/showdown/dist/showdown.js"></script>
<script src="../../../../../node_modules/devextreme-dist/js/dx.all.js"></script>
<script src="../../../../../node_modules/prettier/standalone.js"></script>
<script src="../../../../../node_modules/prettier/parser-html.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion JSDemos/configs/Angular/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ window.config = {
/**/

/** showdown&turndown */
'devextreme-showdown': 'npm:devextreme-showdown/dist/showdown.js',
'showdown': 'npm:showdown/dist/showdown.js',
'turndown': 'npm:turndown/lib/turndown.browser.umd.js',
/**/

Expand Down
2 changes: 1 addition & 1 deletion JSDemos/configs/React/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ window.config = {
/**/

/** showdown&turndown */
'devextreme-showdown': 'npm:devextreme-showdown/dist/showdown.js',
'showdown': 'npm:showdown/dist/showdown.js',
'turndown': 'npm:turndown/lib/turndown.browser.umd.js',
/**/

Expand Down
2 changes: 1 addition & 1 deletion JSDemos/configs/ReactJs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ window.config = {
/**/

/** showdown&turndown */
'devextreme-showdown': 'npm:devextreme-showdown/dist/showdown.js',
'showdown': 'npm:showdown/dist/showdown.js',
'turndown': 'npm:turndown/lib/turndown.browser.umd.js',
/**/

Expand Down
2 changes: 1 addition & 1 deletion JSDemos/configs/Vue/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ window.config = {
/**/

/** showdown&turndown */
'devextreme-showdown': 'npm:devextreme-showdown/dist/showdown.js',
'showdown': 'npm:showdown/dist/showdown.js',
'turndown': 'npm:turndown/lib/turndown.browser.umd.js',
/**/

Expand Down
2 changes: 1 addition & 1 deletion MVCDemos/Views/HtmlEditor/OutputFormats.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@section ExternalDependencies {
<script src="https://unpkg.com/devextreme-quill@21_2/dist/dx-quill.min.js"></script>
<script src="https://unpkg.com/turndown@7.0.0/dist/turndown.js"></script>
<script src="https://unpkg.com/devextreme-showdown/dist/showdown.min.js"></script>
<script src="https://unpkg.com/showdown@2.1.0/dist/showdown.min.js"></script>
<script src="https://www.unpkg.com/prettier@2.7.1/standalone.js"></script>
<script src="https://www.unpkg.com/prettier@2.7.1/parser-html.js"></script>
}
Expand Down
2 changes: 1 addition & 1 deletion NetCoreDemos/Views/HtmlEditor/OutputFormats.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@section ExternalDependencies {
<script src="https://unpkg.com/devextreme-quill@21_2/dist/dx-quill.min.js"></script>
<script src="https://unpkg.com/turndown@7.0.0/dist/turndown.js"></script>
<script src="https://unpkg.com/devextreme-showdown/dist/showdown.min.js"></script>
<script src="https://unpkg.com/showdown@2.1.0/dist/showdown.min.js"></script>
<script src="https://www.unpkg.com/prettier@2.7.1/standalone.js"></script>
<script src="https://www.unpkg.com/prettier@2.7.1/parser-html.js"></script>
}
Expand Down

0 comments on commit ed910c1

Please sign in to comment.