pom-text-editor 0.1.21 → 0.2.22
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 +17 -3
- package/dist/pom-text-editor.cjs.js +90 -77
- package/dist/pom-text-editor.es.js +1451 -673
- package/dist/pom-text-editor.umd.js +90 -77
- package/package.json +4 -6
- package/dist/style.css +0 -8997
package/README.md
CHANGED
|
@@ -28,6 +28,8 @@ Copy code
|
|
|
28
28
|
import { createApp } from 'vue';
|
|
29
29
|
import App from './App.vue';
|
|
30
30
|
import Editor from 'pom-text-editor'; // Correct import path
|
|
31
|
+
import 'node_modules/pom-text-editor/dist/style.css'; // optional Update the path based on actual location
|
|
32
|
+
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
const app = createApp(App);
|
|
@@ -44,17 +46,29 @@ Copy code
|
|
|
44
46
|
<template>
|
|
45
47
|
<Editor @change="resultData" />
|
|
46
48
|
</template>
|
|
49
|
+
## add ToolBar
|
|
50
|
+
```
|
|
51
|
+
TextOnly out put
|
|
52
|
+
<Editor TextOnly='true' @change="resultData" />
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
47
56
|
## add ToolBar
|
|
48
57
|
```
|
|
49
58
|
<template>
|
|
59
|
+
// if only text needed out ie this will give clean text no tags
|
|
60
|
+
<Editor @change="resultData" TextOnly="true">
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
50
64
|
<Editor @change="resultData" >
|
|
51
65
|
<template v-slot:toolbar-after>
|
|
52
66
|
<div class="hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-1">12</div>
|
|
53
67
|
<div class="hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-1">12</div>
|
|
54
68
|
</template>
|
|
55
69
|
<template v-slot:toolheader-after>
|
|
56
|
-
<componet @click='
|
|
57
|
-
<componet @click='
|
|
70
|
+
<componet @click='()=>alert()' class='hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1'>Helo5</componet>
|
|
71
|
+
<componet @click='()=>alert()' class='hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1'>Helo6</componet>
|
|
58
72
|
</template>
|
|
59
73
|
</Editor>
|
|
60
74
|
</template>
|
|
@@ -104,7 +118,7 @@ Push to the branch: git push origin feature/your-feature.
|
|
|
104
118
|
Open a Pull Request.
|
|
105
119
|
|
|
106
120
|
## Contributors
|
|
107
|
-
[**
|
|
121
|
+
[**ssengendonazil@gmail.com**](https://github.com/ssengedonazil) – Lead Project maintainer
|
|
108
122
|
- [**wanderatimothy2@gmail.com**](https://github.com/contributor) – Project maintainer
|
|
109
123
|
|
|
110
124
|
|