dragon-editor 3.1.0 → 3.2.0

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/README.md CHANGED
@@ -30,16 +30,21 @@
30
30
 
31
31
  I just made the DragonEditor because I needed the WYSIWYG Editor to write on my [blog](https://dico.me).
32
32
 
33
- This module support Nuxt3 only.
33
+ This module support only Nuxt3.
34
34
 
35
35
  # Dependencies
36
36
 
37
37
  - @pinia/nuxt
38
+ - highlight.js
39
+
40
+ # Font
41
+
42
+ If you use Codeblock. I recommented use `Inconsolata` font. [(link)](https://fonts.google.com/specimen/Inconsolata?query=Inconsolata)
38
43
 
39
44
  ## Install
40
45
 
41
46
  ```shell
42
- mpm i dragon-edtior
47
+ npm i dragon-edtior
43
48
  # or
44
49
  yarn add dragon-editor
45
50
  # or
@@ -88,48 +93,4 @@ Done!
88
93
  </script>
89
94
  ```
90
95
 
91
- ## Method
92
-
93
- ### getContentData
94
-
95
- ```html
96
- <template>
97
- <div class="editor-area">
98
- <ClientOnly>
99
- <DragonEditor ref="$editor" />
100
- </ClientOnly>
101
- <button @click="getData()">Get Data</button>
102
- </div>
103
- </template>
104
-
105
- <script setup lang="ts">
106
- const $editor = ref<DragonEditor>();
107
-
108
- function getData() {
109
- console.log($editor.value.getContentData());
110
- }
111
- </script>
112
- ```
113
-
114
- ### setContentData
115
-
116
- ```html
117
- <template>
118
- <div class="editor-area">
119
- <ClientOnly>
120
- <DragonEditor ref="$editor" />
121
- </ClientOnly>
122
- <button @click="setData()">Set Data</button>
123
- </div>
124
- </template>
125
-
126
- <script setup lang="ts">
127
- const $editor = ref<DragonEditor>();
128
-
129
- function setData() {
130
- $editor.value.setContentData([...]);
131
- }
132
- </script>
133
- ```
134
-
135
- <!-- More information is here [Document](123) -->
96
+ More information is here [Document](https://lovefields.github.io/dragonEditor-doc/)
package/dist/module.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
 
3
- declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions>;
3
+ declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
4
4
 
5
5
  export { _default as default };
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "dragon-editor",
3
3
  "configKey": "dragon-editor",
4
- "version": "3.1.0"
4
+ "version": "3.2.0"
5
5
  }