public JsonResult GetTinyMceInitSettings()
        {
            var model = new TinymceInitSettingsModel();

            model.templates            = GetTemplatesList();
            model.scripts              = GetTinyMceExternallScripts();
            model.rootImagesFolderPath = Path.Combine(Request.Url.Scheme + "://" + Request.Url.DnsSafeHost + ":" + Request.Url.Port + Request.ApplicationPath, _rootImagesFolderPath);
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public ActionResult SaveWebTemplate(string html, string name)
        {
            WebTemplate item = new WebTemplate();

            item.Html = html;
            item.Name = name;
            WebTemplateRepository.SaveOrUpdate(item);
            var model = new TinymceInitSettingsModel();

            model.templates = GetTemplatesList();
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
 public ActionResult SaveWebTemplate(string html, string name)
 {
     WebTemplate item = new WebTemplate();
     item.Html = html;
     item.Name= name;
     WebTemplateRepository.SaveOrUpdate(item);
     var model = new TinymceInitSettingsModel();
     model.templates = GetTemplatesList();
     return Json(model, JsonRequestBehavior.AllowGet);
 }
 public JsonResult GetTinyMceInitSettings()
 {
     var model = new TinymceInitSettingsModel();
     model.templates = GetTemplatesList();
     model.scripts = GetTinyMceExternallScripts();
     model.rootImagesFolderPath = Path.Combine(Request.Url.Scheme + "://" + Request.Url.DnsSafeHost + ":" + Request.Url.Port + Request.ApplicationPath, _rootImagesFolderPath);
     return Json(model, JsonRequestBehavior.AllowGet);
 }