Esempio n. 1
0
        internal static IEnumerable <VisualEditorStyle> GetResultStyles(int siteId)
        {
            var defaultStyles = GetAllStyles();
            var siteStyles    = GetSiteStyles(siteId);

            return(VisualEditorHelpers.Merge(defaultStyles, siteStyles));
        }
Esempio n. 2
0
        internal static IEnumerable <VisualEditorCommand> GetResultCommands(int siteId)
        {
            var defaultCommands = GetDefaultCommands();
            var siteCommands    = GetSiteCommands(siteId);

            return(VisualEditorHelpers.Merge(defaultCommands, siteCommands));
        }
Esempio n. 3
0
        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));
        }