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

Plugin remains "enabled" even when a widget editables allowedContent is set not to allow any markup #56

Open
dnijssen opened this issue Jun 3, 2017 · 0 comments

Comments

@dnijssen
Copy link

dnijssen commented Jun 3, 2017

Hello,

I have written a custom CKEditor widget, that has defined a couple editables (within the widget), each editable has its own "allowedContent", because I want to prevent users of widget to use any other markup such as youtube videos etc. in my custom widget.
All other plugins, styles get greyed out by the allowedContent settings on my widget, but the youtube plugin stays active.. I think the youtube plugin needs to have a "requiredContent" setting along with the "allowedContent" in the plugin.js.

http://docs.ckeditor.com/#!/guide/plugin_sdk_integration_with_acf
CKEDITOR.feature.requiredContent – defines a minimal set of content types that must be enabled to let the feature work.

I don't want to disable or remove the youtube plugin, as it is indeed very useful, I just want users to prevent using it within my widget ;)

Kind regards,
Dennis

@dnijssen dnijssen changed the title Plugin remains "enabled" even when a widget editables allowedContent is set not allow any markup Plugin remains "enabled" even when a widget editables allowedContent is set not to allow any markup Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants