Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to disallow media #153

Closed
zsoltjanes opened this issue Jan 2, 2025 · 4 comments
Closed

Ability to disallow media #153

zsoltjanes opened this issue Jan 2, 2025 · 4 comments

Comments

@zsoltjanes
Copy link

I don't want to use new Models in my application, can you make an option to disable this?

@mostafaznv
Copy link
Owner

I haven’t tried it yet, but I believe you just need to delete all media models and resources (Audio, Video, Image, File). Then, make the following changes in your config/nova-ckeditor.php file:

  1. Set video-model and image-model to an empty string ('').
  2. Search for mediaBrowser and remove it from both items and toolbar.
  3. Set image, video, audio, and file to false inside the browser array.

@zsoltjanes
Copy link
Author

Thanks one more question related the image upload, how can i removethis part?
image

@mostafaznv
Copy link
Owner

mostafaznv commented Jan 3, 2025

I’ve just published an update, allowing you to configure it by modifying the config/nova-ckeditor.php file:

'insert' => [
'integrations' => [
'upload',
'assetManager',
'url'
],
],

Please note that you may need to add the above lines to your existing config file.

https://github.com/mostafaznv/nova-ckeditor/releases/tag/7.7.4

@zsoltjanes
Copy link
Author

Thanks working!

@mostafaznv mostafaznv pinned this issue Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants