pom-text-editor 0.0.1 → 0.0.4
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 +9 -101
- package/dist/pom-text-editor.cjs.js +4 -4
- package/dist/pom-text-editor.es.js +384 -372
- package/dist/pom-text-editor.umd.js +4 -4
- package/package.json +14 -1
package/README.md
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
# PomTextEditor
|
|
3
|
-
|
|
4
|
-
**PomTextEditor** is a Vue 3 component library that provides a customizable text editor for your Vue applications.
|
|
5
|
-
|
|
6
|
-
## Installation
|
|
7
|
-
|
|
8
|
-
To use **PomTextEditor** in your project, install it via npm or yarn.
|
|
9
|
-
|
|
10
|
-
### Using npm
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install pom-text-editor
|
|
14
|
-
yarn add pom-text-editor
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Usage
|
|
19
|
-
Global Registration
|
|
20
|
-
To use the Editor component globally in your Vue 3 application, register it in your main application file (e.g., main.js or main.ts).
|
|
21
|
-
|
|
22
|
-
main.js
|
|
23
|
-
|
|
24
|
-
js
|
|
25
|
-
Copy code
|
|
26
|
-
import { createApp } from 'vue';
|
|
27
|
-
import App from './App.vue';
|
|
28
|
-
import { Editor } from 'pom-text-editor'; // Correct import path
|
|
29
|
-
|
|
30
|
-
const app = createApp(App);
|
|
31
|
-
app.component('Editor', Editor); // Register the component globally
|
|
32
|
-
app.mount('#app');
|
|
33
|
-
|
|
34
2
|
|
|
35
|
-
|
|
36
|
-
Certainly! Here's an improved version of your README.md, with a cleaner structure and corrected details:
|
|
37
|
-
|
|
38
|
-
markdown
|
|
39
|
-
Copy code
|
|
40
3
|
# PomTextEditor
|
|
41
4
|
|
|
42
5
|
**PomTextEditor** is a Vue 3 component library that provides a customizable text editor for your Vue applications.
|
|
@@ -45,61 +8,7 @@ Copy code
|
|
|
45
8
|
|
|
46
9
|
To use **PomTextEditor** in your project, install it via npm or yarn.
|
|
47
10
|
|
|
48
|
-
### Using
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm install pom-text-editor
|
|
52
|
-
Using yarn
|
|
53
|
-
bash
|
|
54
|
-
Copy code
|
|
55
|
-
yarn add pom-text-editor
|
|
56
|
-
Usage
|
|
57
|
-
Global Registration
|
|
58
|
-
To use the Editor component globally in your Vue 3 application, register it in your main application file (e.g., main.js or main.ts).
|
|
59
|
-
|
|
60
|
-
main.js
|
|
61
|
-
|
|
62
|
-
js
|
|
63
|
-
Copy code
|
|
64
|
-
import { createApp } from 'vue';
|
|
65
|
-
import App from './App.vue';
|
|
66
|
-
import { Editor } from 'pom-text-editor'; // Correct import path
|
|
67
|
-
|
|
68
|
-
const app = createApp(App);
|
|
69
|
-
app.component('Editor', Editor); // Register the component globally
|
|
70
|
-
app.mount('#app');
|
|
71
|
-
Using in a Component
|
|
72
|
-
Once registered, you can use the Editor component in any of your Vue components.
|
|
73
|
-
|
|
74
|
-
OtherComponent.vue
|
|
75
|
-
|
|
76
|
-
vue
|
|
77
|
-
Copy code
|
|
78
|
-
<template>
|
|
79
|
-
<Editor @change="resultData" />
|
|
80
|
-
</template>
|
|
81
|
-
|
|
82
|
-
<script setup>
|
|
83
|
-
function resultData(val) {
|
|
84
|
-
console.log(val, 'Your HTML content');
|
|
85
|
-
}
|
|
86
|
-
</script>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Certainly! Here's an improved version of your README.md, with a cleaner structure and corrected details:
|
|
91
|
-
|
|
92
|
-
markdown
|
|
93
|
-
Copy code
|
|
94
|
-
# PomTextEditor
|
|
95
|
-
|
|
96
|
-
**PomTextEditor** is a Vue 3 component library that provides a customizable text editor for your Vue applications.
|
|
97
|
-
|
|
98
|
-
## Installation
|
|
99
|
-
|
|
100
|
-
To use **PomTextEditor** in your project, install it via npm or yarn.
|
|
101
|
-
|
|
102
|
-
### Using npm
|
|
11
|
+
### Using np
|
|
103
12
|
|
|
104
13
|
```bash
|
|
105
14
|
npm install pom-text-editor
|
|
@@ -127,9 +36,9 @@ app.mount('#app');
|
|
|
127
36
|
Using in a Component
|
|
128
37
|
Once registered, you can use the Editor component in any of your Vue components.
|
|
129
38
|
|
|
130
|
-
OtherComponent.vue
|
|
131
|
-
```
|
|
132
39
|
|
|
40
|
+
```
|
|
41
|
+
OtherComponent.vue
|
|
133
42
|
vue
|
|
134
43
|
Copy code
|
|
135
44
|
<template>
|
|
@@ -142,19 +51,21 @@ function resultData(val) {
|
|
|
142
51
|
}
|
|
143
52
|
</script>
|
|
144
53
|
```
|
|
145
|
-
|
|
146
54
|
CSS
|
|
147
|
-
The CSS for PomTextEditor is included directly within the JavaScript bundle.
|
|
55
|
+
The CSS for PomTextEditor is included directly within the JavaScript bundle.
|
|
56
|
+
You don’t need to import a separate CSS file for the component to work. However,
|
|
57
|
+
if you want to customize the styles, you can include additional styles in your main
|
|
58
|
+
application stylesheet or scoped styles in your components.
|
|
148
59
|
```
|
|
149
60
|
|
|
150
61
|
Documentation
|
|
151
62
|
For more detailed information and customization options, please refer to the documentation (Coming soon).
|
|
152
|
-
```
|
|
153
63
|
|
|
64
|
+
```
|
|
154
65
|
Contributing
|
|
155
66
|
We welcome contributions! If you would like to contribute, please follow these steps:
|
|
156
|
-
```
|
|
157
67
|
|
|
68
|
+
```
|
|
158
69
|
Fork the repository.
|
|
159
70
|
Create a feature branch (git checkout -b feature/your-feature).
|
|
160
71
|
Commit your changes (git commit -am 'Add new feature').
|
|
@@ -170,9 +81,6 @@ If you have any questions or need support, please reach out to us at ssengendona
|
|
|
170
81
|
|
|
171
82
|
Thank you for using PomTextEditor! We hope it enhances your Vue applications.
|
|
172
83
|
|
|
173
|
-
markdown
|
|
174
|
-
Copy code
|
|
175
|
-
|
|
176
84
|
```
|
|
177
85
|
|
|
178
86
|
Please Feel free To Help with bugs
|