x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<input type="hidden" name="content" id="trix_input_173" value="<h1>The Joke Tax Chronicles</h1><div>Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.</div><div><br></div><h1>The King's Plan</h1><div>The king thought long and hard, and finally came up with <a href="https://ui.shadcn.com/docs/components/typography#">a brilliant plan</a>: he would tax the jokes in the kingdom.<br> <br></div><blockquote>"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."</blockquote><div><br></div><h1>The Joke Tax</h1><div>The king's subjects were not amused. They grumbled and complained, but the king was firm:<br> <br></div><ul> <li>1st level of puns: 5 gold coins</li> <li>2nd level of jokes: 10 gold coins</li> <li>3rd level of one-liners : 20 gold coins</li></ul><div><br></div><pre><%= button_tag class: "btn" do %> <%= image_tag "circle-plus.svg", size: 16, aria: { hidden: true } %> <span>Add user</span><% end %></pre><div><br></div><div>As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.</div><div><br></div><h1>Jokester's Revolt</h1><div>Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.</div><div><br></div><div>And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.</div><div><br></div><h1>The People's Rebellion</h1><div>The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.</div><div><br></div><div>The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.</div><div><br></div><div>The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.</div>" autocomplete="off" /><trix-editor placeholder="Write away..." input="trix_input_173" class="trix-content" data-direct-upload-url="https://csszero.lazaronixon.com/rails/active_storage/direct_uploads" data-blob-url-template="https://csszero.lazaronixon.com/rails/active_storage/blobs/redirect/:signed_id/:filename"></trix-editor>
1
<%= rich_text_area_tag "content", render("trix_content"), placeholder: "Write away..." %>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
trix-toolbar { inset-block-start: 0; position: sticky; .trix-button-row { background-color: var(--color-bg); border-block-width: 1px; padding-block: var(--size-1_5); gap: 1px; } .trix-button-group { border: 0 !important; margin: 0 !important; gap: 1px; } .trix-button { background-color: var(--color-bg); border: 0 !important; border-radius: var(--rounded-md); color: var(--color-text); &.trix-active { background-color: var(--color-secondary); } &.trix-button--icon::before { filter: var(--color-filter-text); opacity: 1; } &.trix-button--icon:disabled::before { opacity: 0.125; } } .trix-dialog { background-color: var(--color-border-light); border: 1px solid var(--color-border); border-radius: var(--rounded-md); margin: var(--size-1); box-shadow: var(--shadow-md); } .trix-input--dialog { border-color: var(--color-border); background-color: var(--color-bg); margin: 0; } .trix-button--dialog { margin-inline-start: var(--size-1_5); background-color: var(--color-primary); color: var(--color-text-reversed); } @media (max-width: 768px) { .trix-button-group--history-tools { display: none; } }}trix-editor { border: 0; min-block-size: var(--size-72); padding-block: var(--size-6) var(--size-2); &:empty:not(:focus)::before { color: color-mix(in srgb, currentColor 50%, transparent); } [data-trix-mutable].attachment img, [data-trix-mutable].attachment--content, [data-trix-mutable].attachment--file { box-shadow: 0 0 0 2px var(--color-selected-dark); } .attachment__metadata { background-color: var(--color-border-light); color: var(--color-text); } &:focus-visible { outline: 0; }}.trix-content { & { line-height: var(--leading-7); } a { color: var(--color-link); text-decoration: underline; } h1 { font-size: var(--text-2xl); font-weight: var(--font-semibold); line-height: var(--leading-8); margin-block-end: var(--size-6); } blockquote { border-inline-start: 2px solid var(--color-border); font-style: italic; margin: 0; padding-inline-start: var(--size-6); padding-inline-end: 0; } pre { background-color: var(--color-border-light); border-radius: var(--rounded-lg); font-family: var(--font-monospace-code); font-size: var(--text-sm); line-height: var(--leading-5); padding: var(--size-4); } ul { list-style-type: disc; margin-inline-start: var(--size-6); } ol { list-style-type: decimal; margin-inline-start: var(--size-6); } li { margin: 0; } img { display: inline; } action-text-attachment { display: contents; } .attachment:not(.attachment--file) { .attachment__caption { display: none; } } .attachment--file { color: var(--color--text); border: 1px solid var(--color-border); } .attachment__progress { background-color: var(--color-border-light); border-radius: var(--rounded-full); overflow: hidden; &::-webkit-progress-bar { background-color: var(--color-border-light); } &::-webkit-progress-value { background-color: var(--color-primary); } &::-moz-progress-bar { background-color: var(--color-primary); } }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.