Beispiel #1
0
        public void ProcessScripts(RichEditScriptsTagHelper tagHeelper, TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "script";
            output.TagMode = TagMode.StartTagAndEndTag;
            output.Attributes.SetAttribute("src", NIC_EDIT_SERVICE_URL);
            string htmlContent = string.Format(INIT_SCRIPT_TEMPLATE, tagHeelper.ControlId);

            output.PostElement.SetHtmlContent(htmlContent);
        }
Beispiel #2
0
        public void ProcessScripts(RichEditScriptsTagHelper tagHelper, TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "script";
            output.TagMode = TagMode.StartTagAndEndTag;
            output.Attributes.SetAttribute("src", FROALA_JS_CDN);
            output.Attributes.SetAttribute("type", "text/javascript");
            output.Attributes.SetAttribute("language", "javascript");
            var htmlContent = string.Format(FROALA_SCRIPT_TEMPLATE, tagHelper.ControlId);

            output.PostElement.SetHtmlContent(htmlContent + FROALA_CSS_CDN);
        }
Beispiel #3
0
        public void ProcessScripts(RichEditScriptsTagHelper tagHeelper, TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "script";
            output.TagMode = TagMode.StartTagAndEndTag;
            output.Attributes.SetAttribute("src", string.Format(TINY_MCE_SERVICE_URL, dasBlogSettings.SiteConfiguration.TinyMCEApiKey));
            output.Attributes.SetAttribute("type", "text/javascript");
            output.Attributes.SetAttribute("language", "javascript");
            string htmlContent = string.Format(INIT_SCRIPT_TEMPLATE, tagHeelper.ControlId);

            output.PostElement.SetHtmlContent(htmlContent);
        }
 public void ProcessScripts(RichEditScriptsTagHelper tagHeelper, TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "script";
     output.TagMode = TagMode.StartTagAndEndTag;
 }