You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/08-Plugins/14-markdown.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,4 +169,39 @@ plugins: [
169
169
},
170
170
}),
171
171
]
172
-
```
172
+
```
173
+
174
+
### Markdown Top Panel
175
+
The Markdown plugin also provides a convenient top panel with formatting buttons, allowing users to quickly apply Markdown syntax without typing it manually.
176
+
177
+
By default, the toolbar includes common formatting actions such as:
178
+
- Bold
179
+
- Italic
180
+
- Underline
181
+
- Strikethrough
182
+
- Headings (H1, H2, H3)
183
+
- Lists (ordered and unordered)
184
+
- Links
185
+
- Code blocks
186
+
187
+
If some buttons are unnecessary for your use case, you can easily disable them using the topPanelSettings option.
188
+
189
+
```typescript title="./resources/apartments.ts"
190
+
importMarkdownPluginfrom'@adminforth/markdown';
191
+
192
+
// ... existing resource configuration ...
193
+
194
+
plugins: [
195
+
newMarkdownPlugin({
196
+
fieldName: "description",
197
+
// diff-add
198
+
topPanelSettings: {
199
+
// diff-add
200
+
bold: false, //disable bold button
201
+
},
202
+
})
203
+
]
204
+
```
205
+
206
+
>👆 Full list of buttons you can enable or disable via topPanelSettings:
0 commit comments