pom-text-editor 0.1.20 → 0.2.21

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
@@ -27,7 +27,9 @@ js
27
27
  Copy code
28
28
  import { createApp } from 'vue';
29
29
  import App from './App.vue';
30
- import { Editor } from 'pom-text-editor'; // Correct import path
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);
@@ -47,14 +49,19 @@ Copy code
47
49
  ## add ToolBar
48
50
  ```
49
51
  <template>
52
+ // if only text needed out ie this will give clean text no tags
53
+ <Editor @change="resultData" TextOnly="true">
54
+
55
+
56
+
50
57
  <Editor @change="resultData" >
51
58
  <template v-slot:toolbar-after>
52
59
  <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
60
  <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
61
  </template>
55
62
  <template v-slot:toolheader-after>
56
- <componet @click='3' 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>
57
- <componet @click='3' 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>
63
+ <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>
64
+ <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
65
  </template>
59
66
  </Editor>
60
67
  </template>