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

Consider editor policy only if format does not offer policy #3907

Closed
reckart opened this issue Mar 28, 2023 · 0 comments
Closed

Consider editor policy only if format does not offer policy #3907

reckart opened this issue Mar 28, 2023 · 0 comments

Comments

@reckart
Copy link
Member

reckart commented Mar 28, 2023

Describe the refactoring action
Currently, the editor and the format can both provide content policies and they stack. However, this means that for an element to get through, it must be whitelisted for the editor as well as for the format. This in turn means that supporting any new format (with a given policy) will also require a new editor (with a compatible policy) or an editor without any policy. But it should be possible to build editors and formats more or less independently.

Thus, it seems sensible to allow preferring either the editor or the format policy and only use the preferred one if it is available. The proposal: if the format already brings a policy, then the editor policy could be ignored.

Expected benefit
This allows developing editors with policies that can operate in conjunction with the generic XML support. It also allows developing new formats with policies that can operate in conjunction with reasonably generic editors.

@reckart reckart added this to the 28.0 milestone Mar 28, 2023
@reckart reckart self-assigned this Mar 28, 2023
@reckart reckart added this to 🔖 To do in Kanban via automation Mar 28, 2023
reckart added a commit that referenced this issue Mar 28, 2023
- If the format already provides a policy, do not consider the editor policy anymore
reckart added a commit that referenced this issue Mar 29, 2023
…ider-editor-policy-only-if-format-does-not-offer-policy

#3907 - Consider editor policy only if format does not offer policy
@reckart reckart closed this as completed Mar 29, 2023
Kanban automation moved this from 🔖 To do to 🍹 Done Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Kanban
  
🍹 Done
Development

No branches or pull requests

1 participant