コード例 #1
0
 public void ProcessControl(RichEditTagHelper tagHelper, TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "textarea";
     output.TagMode = TagMode.StartTagAndEndTag;
     output.Attributes.SetAttribute("id", tagHelper.Id);
     output.Attributes.SetAttribute("name", tagHelper.Name);
     output.Attributes.SetAttribute("style", "width: 100%; height: 90%;");
 }
コード例 #2
0
 public void ProcessControl(RichEditTagHelper tagHelper, TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "textarea";
     output.TagMode = TagMode.StartTagAndEndTag;
     output.Attributes.SetAttribute("comment", "a rich-edit-scripts element should be included on the page");
     output.Attributes.SetAttribute("id", tagHelper.Id);
     output.Attributes.SetAttribute("name", tagHelper.Name);
     output.Attributes.SetAttribute("style", "height: 100%; width: 99%; min-height: 360px");
 }
コード例 #3
0
 public void ProcessControl(RichEditTagHelper tagHelper, TagHelperContext context, TagHelperOutput output)
 {
     output.TagName = "textarea";
     output.TagMode = TagMode.StartTagAndEndTag;
     output.Attributes.SetAttribute("comment", "a rich-edit-scripts element should be included on the page");
     output.Attributes.SetAttribute("id", tagHelper.Id);
     output.Attributes.SetAttribute("name", tagHelper.Name);
     // the following is blatant cargo-culting to tet  a resonable size
     // just copied the legacy settings - no idea why it works
     output.Attributes.SetAttribute("style", "height: 400px; width: 99%;");
     output.Attributes.SetAttribute("cols", "20");
     output.Attributes.SetAttribute("rows", "2");
 }