protected override void OnSaveSettings() { base.OnSaveSettings(); if (marginCommand.IsZero() == false) { HtmlMarginSettings.Margin = new MarginStyle(marginCommand.Top, marginCommand.Right, marginCommand.Bottom, marginCommand.Left, StyleSizeUnit.PX); } else { HtmlMarginSettings.Margin = null; } // Taking out this call because applying // decorators is very slow and doesn't seem to do anything // in this case. I don't know of any side effects to taking // out this call but that doesn't mean they don't exist. // (Bug 672770: Evident lag in applying margins to images, especially if effects are applied to the image) // // EditorContext.ApplyDecorator(); FireMarginChanged(); }