dragon-editor 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
<option v-for="(item, i) in _getCodeBlockTheme()" :value="item.code" :key="`codeBlockTheme-${i}`">{{ item.text }}</option>
|
|
93
93
|
</select>
|
|
94
94
|
</div>
|
|
95
|
-
|
|
95
|
+
<!--
|
|
96
96
|
<div v-if="['code'].includes(curruntType) === true" class="de-col">
|
|
97
97
|
<p class="de-name">Language :</p>
|
|
98
98
|
<select class="de-selector" v-model="codeblockLanguage" @change="codeblockLanguageChangeEvent">
|
|
99
99
|
<option v-for="(item, i) in _getCodeBlockLanguage()" :value="item.code" :key="`codeBlockLanuage-${i}`">{{ item.text }}</option>
|
|
100
100
|
</select>
|
|
101
101
|
</div>
|
|
102
|
-
|
|
102
|
+
-->
|
|
103
103
|
<div v-if="['list'].includes(curruntType) === true" class="de-col">
|
|
104
104
|
<p class="de-name">List Style :</p>
|
|
105
105
|
<select class="de-selector" v-model="listBlockStyle" @change="listBlockStyleChangeEvent">
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _getBlockType } from "./block.mjs";
|
|
2
|
-
import hljs from "highlight.js";
|
|
3
2
|
import "../type.d.ts";
|
|
4
3
|
export function _getCodeBlockTheme() {
|
|
5
4
|
return [
|
|
@@ -135,9 +134,6 @@ export function _setCodeBlockLanguage(store, lang) {
|
|
|
135
134
|
if (type === "code") {
|
|
136
135
|
const $langText = $element.querySelector(".de-language");
|
|
137
136
|
const $code = $element.querySelector(".de-code-content");
|
|
138
|
-
const convert = hljs.highlight($code.textContent ?? "", { language: lang });
|
|
139
|
-
$langText.textContent = convert._top.name ?? "";
|
|
140
|
-
$code.innerHTML = convert.value;
|
|
141
137
|
}
|
|
142
138
|
}
|
|
143
139
|
}
|