Skip to content

Commit 850d402

Browse files
committed
Fix TinyMCE AI feature banner: single passthrough preserves markup before styles
Asciidoctor emitted a style-only pass block before the open block, unlike the signup banner partial. Use one passthrough with markup then style so layout matches other promo blocks.
1 parent d45220d commit 850d402

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

modules/ROOT/partials/misc/admon-plugins-tinymce-ai-feature.adoc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
// Plugins index — TinyMCE AI feature advert. Self-contained styles (not shared with admon-promo-banner).
1+
// Plugins index — TinyMCE AI feature advert. Single passthrough keeps markup before <style> (matches signup banner partial; style-only pass + open block reordered in output).
2+
[subs=attributes+]
23
++++
4+
<div class="openblock plugins-ai-feature-banner">
5+
<div class="content">
6+
<div class="paragraph lead">
7+
<p><a href="../tinymceai-introduction/" class="xref page">TinyMCE AI</a></p>
8+
</div>
9+
<div class="paragraph">
10+
<p>AI-powered features for {productname} including AI chat, AI review, and quick actions.</p>
11+
</div>
12+
</div>
13+
</div>
314
<style>
415
.plugins-ai-feature-banner {
516
--radius: 3px;
@@ -18,7 +29,7 @@
1829
top: -1px; bottom: -1px; left: -1px;
1930
width: 5px;
2031
background: linear-gradient(to bottom, #F66 15%, #4D66CB 85%);
21-
border-radius: var(--radius) 0 0 var(--radius)
32+
border-radius: var(--radius) 0 0 var(--radius);
2233
}
2334
2435
.plugins-ai-feature-banner .paragraph:first-child {
@@ -34,11 +45,3 @@
3445
}
3546
</style>
3647
++++
37-
38-
[.plugins-ai-feature-banner]
39-
--
40-
[.lead]
41-
xref:tinymceai-introduction.adoc[TinyMCE AI]
42-
43-
AI-powered features for {productname} including AI chat, AI review, and quick actions.
44-
--

0 commit comments

Comments
 (0)