November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Have you tried GetGlobals() to find the correct one?
var p = new PropertySettingsRepository();
var globals = p.GetGlobals(typeof( ...
foreach (var setting in globals)
{
if (setting.DisplayName.Equals("Comment Editor", StringComparison.OrdinalIgnoreCase))
{
I actually found another way around it. I create an new empty page of the Comment type, then pull the settings off the property I wanted.
That probably makes sense, since those settings are bound to that property. I do have a PageData object that I just throw away without saving, but I can't see how that's a problem.
editor.PropertySettings = (TinyMCESettings)comment.Property["MainBody"].GetSetting(typeof (TinyMCESettings);
Is there a way you could do the same with PageTypeBuilder? I mean just select the default settings for TinyMCE without creating the settings in code?
So, on startup you want anything that's not the Default setting to be set back to the Default setting?
Or do you want all Setttings gone and revert to the out-of-the-box EPiServer config?
The out-of-the-box toolbars are not optimal IMHO so I need an "own" setting anyway... Blogged about it a while back:
http://krompaco.nu/2012/09/page-type-builder-and-tinymce-global-settings/
How do I load TinyMCE using custom settings? I have created a custom configuration called "Comment Editor." I want to load this in my template. I have this code, which works:
But this loads the default settings, not my custom, named settings. I can't figure out how to get at my named settings.