internal static IEnumerable <VisualEditorStyle> GetResultStyles(int siteId) { var defaultStyles = GetAllStyles(); var siteStyles = GetSiteStyles(siteId); return(VisualEditorHelpers.Merge(defaultStyles, siteStyles)); }
internal static IEnumerable <VisualEditorCommand> GetResultCommands(int siteId) { var defaultCommands = GetDefaultCommands(); var siteCommands = GetSiteCommands(siteId); return(VisualEditorHelpers.Merge(defaultCommands, siteCommands)); }
public static IEnumerable <VisualEditorCommand> GetResultVisualEditorCommands(int fieldId, int siteId) { if (QPContext.IsAdmin) { var defaultCommands = VisualEditorRepository.GetDefaultCommands(); var siteCommands = VisualEditorRepository.GetSiteCommands(siteId); return(VisualEditorHelpers.Merge(defaultCommands, siteCommands)); } return(VisualEditorRepository.GetResultCommands(fieldId, siteId)); }