Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I'd like to delete the "h1" property from the "Editor" stylesheet. I can do it via the back office, but I want to add it to a migration script. Can I do this?
I've tried:
var editor = ApplicationContext.Current.Services.FileService.GetStylesheetByName("Editor"); editor.Properties = editor.Properties.Where(p => p.Alias != "h1");
but editor.Properties has no setter.
editor.Properties
Cheers. Murray.
this will-be-has-been fixed/changed in v 7.3 http://issues.umbraco.org/issue/U4-114 so I can just change the css file.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Delete Stylesheet properties programatically.
Hi,
I'd like to delete the "h1" property from the "Editor" stylesheet. I can do it via the back office, but I want to add it to a migration script. Can I do this?
I've tried:
but
editor.Properties
has no setter.Cheers.
Murray.
this will-be-has-been fixed/changed in v 7.3 http://issues.umbraco.org/issue/U4-114 so I can just change the css file.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.