Skip to content

how to add the plugins to the toolbox? #166

@PrestigeDevop

Description

@PrestigeDevop

Hello ,

I'm not sure how to make a plugin for the toolbox so that it appears on the toolbar ?

Image

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:

Image

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 :

Image



> [!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.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions