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); }
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); }
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); }