You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/ngx-jodit-pro/README.md
+81-25Lines changed: 81 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,58 @@
1
-
# ngx-jodit-pro v2.x (beta)
1
+
# ngx-jodit-pro v2.x
2
2
3
3
Angular wrapper for <ahref="https://xdsoft.net/jodit/pro/">Jodit PRO</a> WYSIWYG editor. It supports Angular >= 12 and jodit-pro beta. You need a license key in order to use this wrapper. <ahref="https://xdsoft.net/jodit/pro/#compare">Buy here.</a>
4
4
5
5
## License
6
-
This package does not contain the source code of Jodit Pro. You have to install it as described here (scroll down). This wrapper is licensed under MIT License, Jodit Pro is licensed seperately ([see license](https://xdsoft.net/jodit/pro/license/)).
6
+
7
+
This package does not contain the source code of Jodit Pro. You have to install it as described here (scroll down). This
8
+
wrapper is licensed under MIT License, Jodit Pro is licensed
You can find a demo of ngx-jodit-pro 2.x [here](https://github.julianpoemp.com/ngx-jodit-pro/2.x/).
30
+
You can find a demo of ngx-jodit-pro 3.x [here](https://github.julianpoemp.com/ngx-jodit-pro/2.x/).
31
+
32
+
## Remarks
33
+
34
+
ESM for Jodit-Pro is not currently working. See [issue 34](https://github.com/julianpoemp/ngx-jodit/issues/34). You have to include the es2021 build (see installation).
28
35
29
36
## Installation
30
37
31
-
1. Make sure that jodit-pro@beta AND jodit@beta is installed:
38
+
1. Make sure that jodit-pro@4 AND jodit@4 is installed:
32
39
```
33
-
npm install jodit-pro@beta jodit@beta --save
40
+
npm install jodit-pro@4 jodit@4 --save
34
41
```
35
42
2.```
36
43
npm install ngx-jodit-pro@2x --save
37
44
```
38
-
3. Add the following path to your app's styles in angular.json (or project.json for
45
+
3. Add the following paths to your app's styles and scripts in angular.json (or project.json for
5. Add `"skipLibCheck": true` to compilerOptions in your `tsconfig.app.json`. This is needed because the
73
+
check fails to typing errors of the jodit package. **This is still the issue in v4**. If you know any other solution, let me know :):
74
+
```
75
+
...
76
+
"compilerOptions": {
77
+
...,
78
+
"skipLibCheck": true
79
+
}
80
+
...
65
81
```
66
82
67
-
## Usage
83
+
6. Each toolbar element by Jodit v4 is considered as plugin. While basic plugins are imported automatically, you have to import other plugins manually. See section "How to import plugins".
84
+
85
+
7. Now you can use the component. See [example here](https://github.com/julianpoemp/ngx-jodit/tree/v2.x/apps/demo-pro).
If you are facing any issues have a look on [Troubleshooting](https://github.com/julianpoemp/ngx-jodit/blob/main/libs/ngx-jodit/README.md#troubleshooting) first. Create an issue if it's not solved.
70
107
71
-
### Use (Pro) plugins
108
+
## How to import plugins
72
109
73
110
You can install plugins from Jodit and Jodit Pro. For more information about Jodit Pro plugins see [Jodit Pro Docs](https://xdsoft.net/jodit/pro/docs/).
74
111
@@ -78,16 +115,23 @@ You can install plugins from Jodit and Jodit Pro. For more information about Jod
78
115
4. Import "jodit" and the path to this file in a Typescript file of your application. E.g. the Angular component that includes ngx-jodit-pro. For example:
@@ -219,3 +271,7 @@ All [options](https://xdsoft.net/jodit/docs/classes/config.Config.html) from Jod
219
271
</tr>
220
272
</tbody>
221
273
</table>
274
+
275
+
## Troubleshooting
276
+
277
+
-**Some of the buttons don't show any icon**<br/>Check your options if you used the correct button names. If yes, check the folder `node_modules/jodit/es2021/plugins/` for a folder named like the button you want to use. Then import the found plugin to your app as described [here](https://github.com/julianpoemp/ngx-jodit/blob/main/libs/ngx-jodit-pro/README.md#how-to-import-plugins). If that doesn't helpt look in the web console for an error message that indicates a missing plugin.
0 commit comments