Add proper readonly support to default Umbraco editors #12011
Replies: 1 comment 1 reply
-
Regarding the "readonly" toggle at Inherited from {default language} it is actually possible to toggle this anyway via the property label: It would be useful if most property editors / components was able to configurate as readonly or disabled. Sometimes we need to import data, where we would like to use a core property editor, which Depending on the property editor |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Support for readonly editors in Umbraco is currently implemented in a very generic way by using
pointer-events: none;
CSS styling on the property in the backoffice UI. This is used to disable properties on non-default cultures when editing culture variant content nodes (when you see Inherited from {default language} above the property label).PR #11730 ensures this is now also applied when you set a property to readonly using the
EditorModelEventManager
events/notifications.Because it's still possible to move focus to editor inputs by clicking the label or tabbing into them, the current solution is merely a generic quick-fix. To properly support readonly editors, this needs to be implemented separately for each editor type. Some might just require adding
disabled="model.readonly"
, but more complex ones will probably require additional changes.I've retrieved the list of default editors on a clean Umbraco 9.3 install, so this can be used to track the process of checking/implementing proper readonly support:
Beta Was this translation helpful? Give feedback.
All reactions