julianpoemp / ngx-jodit

Angular wrapper for jodit and jodit-pro WYSIWYG editor supporting Angular >=12 and ESM.
https://github.julianpoemp.com/ngx-jodit/3.x/
MIT License
18 stars 4 forks source link

ngx-jodit: css is not defined #12

Closed MussaratAziz closed 1 year ago

MussaratAziz commented 1 year ago

added to a demo project when i try to load page get error like css is not defined. Any idea please.

Thanks

julianpoemp commented 1 year ago
MussaratAziz commented 1 year ago

angular 16 1.0.4 Yes i did

i think i forgot to add the style sheet.

MussaratAziz commented 1 year ago

just followed the instructions from https://github.com/julianpoemp/ngx-jodit/blob/v3.x/libs/ngx-jodit/README.md same error

julianpoemp commented 1 year ago

so you tried ngx-jodit v3.x and you followed the instructions for v3.x? What is the exact error message?

MussaratAziz commented 1 year ago

image

MussaratAziz commented 1 year ago

its seems like something to do with jodit module

julianpoemp commented 1 year ago

I don't know a file names "has-same-style.js". I just tested my demo application from this repository and it works fine. See v3.x branch: ngx-jodit demo. Perhaps you can compare my demo app with yours to find a solution. Also make sure that you have installed the correct dependencies of ngx-jodit v3: jodit v4 latest beta and ngx-jodit latest v3 beta.

I don't think that it's an error related to ngx-jodit. It's either an error with Jodit itself or any other library you are using for your demo app. You can expand the error message in the console to list more frames and then try to find the origin of the error.

MussaratAziz commented 1 year ago

image got it working but with few options is there any way to see all the options?

julianpoemp commented 1 year ago

I just tried it out and had some issues with the beta version of Jodit v4. Normally you can easily define your buttons using the buttons option or leave it empty for all buttons. Somehow it's not working with Jodit v4. At the moment I'm too busy to have a look into it. As far as I can see it's working with jodit ^3 and ngx-jodit ^1 . I recommend to use that stable version if possible.

Closing this issue because the original problem was solved.