1- /* Hide Trix caption field for RichEditor when hideCaptions is enabled */
2-
3- /* Target the specific figcaption with attachment__caption class */
4- [data-hide-captions = "true" ] figcaption .attachment__caption {
5- display : none !important ;
6- }
7-
8- /* Target figcaption with data-trix-placeholder attribute */
9- [data-hide-captions = "true" ] figcaption [data-trix-placeholder ] {
10- display : none !important ;
11- }
12-
13- /* Target any figcaption within the editor area */
14- [data-hide-captions = "true" ] .trix-content figcaption ,
15- [data-hide-captions = "true" ] .trix-editor figcaption ,
16- [data-hide-captions = "true" ] .fi-fo-rich-editor figcaption {
17- display : none !important ;
18- }
19-
20- /* Target Filament's rich editor container */
21- [data-hide-captions = "true" ] .fi-fo-rich-editor .trix-content figcaption ,
22- [data-hide-captions = "true" ] .fi-fo-rich-editor .trix-editor figcaption {
23- display : none !important ;
24- }
25-
26- /* More specific targeting for the attachment caption */
27- [data-hide-captions = "true" ] .trix-content figure figcaption .attachment__caption ,
28- [data-hide-captions = "true" ] .trix-editor figure figcaption .attachment__caption {
29- display : none !important ;
30- }
31-
32- /* Hide the caption input field that appears when uploading images */
33- [data-hide-captions = "true" ] .trix-content figcaption input ,
34- [data-hide-captions = "true" ] .trix-content figcaption textarea {
35- display : none !important ;
36- }
37-
38- /* Alternative selectors for different Trix versions */
39- [data-hide-captions = "true" ] .trix-content .attachment__caption ,
40- [data-hide-captions = "true" ] .trix-content .attachment__name ,
41- [data-hide-captions = "true" ] .trix-content .attachment__size {
42- display : none !important ;
43- }
44-
45- /* Hide caption fields in the editor */
46- [data-hide-captions = "true" ] .trix-content [data-trix-content-type ] figcaption {
47- display : none !important ;
48- }
49-
50- /* Hide any caption-related elements */
51- [data-hide-captions = "true" ] .trix-content .caption ,
52- [data-hide-captions = "true" ] .trix-content .image-caption {
53- display : none !important ;
54- }
55-
56- /* Global targeting for any figcaption when hideCaptions is enabled */
57- [data-hide-captions = "true" ] figcaption {
58- display : none !important ;
59- }
0 commit comments