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

Enable copy & paste in restricted editing mode #5802

Closed
jodator opened this issue Nov 26, 2019 · 1 comment · Fixed by ckeditor/ckeditor5-restricted-editing#13
Closed

Enable copy & paste in restricted editing mode #5802

jodator opened this issue Nov 26, 2019 · 1 comment · Fixed by ckeditor/ckeditor5-restricted-editing#13
Assignees
Labels
package:restricted-editing type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@jodator
Copy link
Contributor

jodator commented Nov 26, 2019

📝 Provide a description of the new feature

Pasting is disabled in restricted editing mode MVP. To further enhance this feature we should allow pasting inside non-restricted areas.

The minimal setup would be to strip block content from pasted data but probably we should also think about filtering out content that is not allowed in the restricted areas.


If you'd like to see this feature implemented, add a 👍 reaction to this post.

@jodator jodator added type:feature This issue reports a feature request (an idea for a new functionality or a missing option). package:restricted-editing labels Nov 26, 2019
@Reinmar Reinmar mentioned this issue Nov 26, 2019
2 tasks
@jodator
Copy link
Contributor Author

jodator commented Nov 26, 2019

We should have an additional configuration for the text attributes inside clipboard holder in the restricted editing mode. Depending on how we're gonna solve this I can see that we could ditch command toggling for some features (ie. "bold" feature commands might depend on schema)

User would define which attributes are allowed (config: restrictedEditing.allowedAttributes) and the RE feature would add a dynamic schema check and enable some attributes for given nodes.

We have to leave commands enabling since some commands might be enabled in restricted editing mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:restricted-editing type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants