dragon-editor 4.0.0 → 4.0.2
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 +1 -1
- package/dist/runtime/components/Block/Code.vue +3 -5
- package/dist/runtime/components/DragonEditor.d.vue.ts +0 -1
- package/dist/runtime/components/DragonEditor.vue +988 -1
- package/dist/runtime/components/DragonEditor.vue.d.ts +0 -1
- package/dist/runtime/components/DragonEditorViewer.d.vue.ts +0 -1
- package/dist/runtime/components/DragonEditorViewer.vue +770 -1
- package/dist/runtime/components/DragonEditorViewer.vue.d.ts +0 -1
- package/dist/runtime/utils/data/node.d.ts +1 -0
- package/dist/runtime/utils/data/node.js +4 -0
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function _highlightingCode(text: string, language: string): string;
|
|
1
2
|
export declare function _arrangementNodeList(list: Node[], cursorStartNode: Node | null, cursorStartNodeOffset: number, cursorEndNode: Node | null, cursorEndNodeOffset: number): {
|
|
2
3
|
list: Node[];
|
|
3
4
|
cursorStartNode: Node | null;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import hljs from "highlight.js";
|
|
1
2
|
import { _isStrictlyEqualArrays } from "./index.js";
|
|
3
|
+
export function _highlightingCode(text, language) {
|
|
4
|
+
return hljs.highlight(text, { language }).value;
|
|
5
|
+
}
|
|
2
6
|
export function _arrangementNodeList(list, cursorStartNode, cursorStartNodeOffset, cursorEndNode, cursorEndNodeOffset) {
|
|
3
7
|
const arrangementNodeList = [];
|
|
4
8
|
list.forEach((node) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dragon-editor",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Javascript WYSIWYG editor in Nuxt!",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"wysiwyg-editor",
|
|
67
67
|
"korean",
|
|
68
68
|
"language",
|
|
69
|
-
"
|
|
69
|
+
"nuxt4"
|
|
70
70
|
],
|
|
71
71
|
"author": "Lovefields <lovefield@dico.me> (https://dico.me)",
|
|
72
72
|
"bugs": {
|