blockquote paragraph tag helper

pull/279/head
yekalkan 8 years ago
parent ac424870c7
commit d9baa73eca

@ -0,0 +1,14 @@
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Blockquote
{
[HtmlTargetElement("p", ParentTag = "blockquote")]
public class AbpBlockquoteParagraphTagHelper : AbpTagHelper<AbpBlockquoteParagraphTagHelper, AbpBlockquoteParagraphTagHelperService>
{
public AbpBlockquoteParagraphTagHelper(AbpBlockquoteParagraphTagHelperService tagHelperService)
: base(tagHelperService)
{
}
}
}

@ -0,0 +1,14 @@
using Microsoft.AspNetCore.Razor.TagHelpers;
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Microsoft.AspNetCore.Razor.TagHelpers;
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Blockquote
{
public class AbpBlockquoteParagraphTagHelperService : AbpTagHelperService<AbpBlockquoteParagraphTagHelper>
{
public override void Process(TagHelperContext context, TagHelperOutput output)
{
output.Attributes.AddClass("mb-0");
}
}
}

@ -12,17 +12,15 @@
<div class="demo-with-code">
<div class="demo-area">
<blockquote>
<p class="mb-0">"I love deadlines. I love the whooshing noise they make as they go by."</p>
<p>"I love deadlines. I love the whooshing noise they make as they go by."</p>
<footer> Douglas Adams, The Salmon of Doubt </footer>
</blockquote>
</div>
<div class="code-area">
<pre>
&lt;blockquote&gt;
&lt;p class=&quot;mb-0&quot;&gt;&quot;I love deadlines. I love the whooshing noise they make as they go by.&quot;&lt;/p&gt;
&lt;p&gt;&quot;I love deadlines. I love the whooshing noise they make as they go by.&quot;&lt;/p&gt;
&lt;footer&gt; Douglas Adams, The Salmon of Doubt &lt;/footer&gt;
&lt;/blockquote&gt;
</pre>

Loading…
Cancel
Save