示例#1
0
        public static string TinyMceText(this FavoriteConfigurationElement favorite, string text = null)
        {
            if (string.IsNullOrEmpty(text))
            {
                return(favorite.GetPluginValue <string>("TEXT_Html"));
            }

            favorite.SetPluginValue("TEXT_Html", text);
            return(null);
        }
示例#2
0
        public static string AutoItScript(this FavoriteConfigurationElement favorite, string text = null)
        {
            if (string.IsNullOrEmpty(text))
            {
                return(favorite.GetPluginValue <string>("AUTOIT_Script"));
            }

            favorite.SetPluginValue("AUTOIT_Script", text);
            return(null);
        }
示例#3
0
        public static bool ShowTinyMceInEditMode(this FavoriteConfigurationElement favorite, bool?value = null)
        {
            if (!value.HasValue)
            {
                return(favorite.GetPluginValue <bool>("TEXT_ShowTinyMceInEditMode"));
            }

            favorite.SetPluginValue("TEXT_ShowTinyMceInEditMode", value.Value);
            return(true);
        }