-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hello ,
I'm not sure how to make a plugin for the toolbox so that it appears on the toolbar ?
I want it to Insert predefined text or do some other functionality to the selected text, I'm probably doing it wrong as I'm not using the renderer components /function directly (Carta.renderSSR)
The only thing I'm using is the MarkdownEditor .
which doesn't render some of the content correctly in "preview" tab e.g the youtube videos with the video plugin:
so what I'm doing atm is just letting the users use it normally and apply custom scss and render the blog ( which is stored in a db directly from the output as a html ) in the blog view route , like so :
onMount(() => {
// the post.content sanitize with iframe is only possible in client side rendering
safeContent = DOMPurify.sanitize(post.content ?? '', dompurifyOptions);
});
I've read the tutorial on how to add custom component but this is not a plugin .. is it?
if so .. how to nest it into the toolbox to add some functionality to the input e,g I would like to add something like this :
> [!TIP]
> This is a _styled_ tip using html.
> [!IMPORTANT]
> This is a tip using html.
> [!WARNING]
> This is a tip using html..
> [!Code]
> This is a tip using html.```


