Skip to content

how to use before-preview-change #300

Open
@impronta48

Description

@impronta48

I've tried this

 <v-md-editor id="md-editor" v-model="text" class="w-100 h-100" @save="saveMd()" :before-preview-change="beforePreviewChange(text, aq)"></v-md-editor>

And in my methods

        beforePreviewChange(text, next) {
            console.log("text", text);            
            return next(text);
        },
        aq(text) {
            console.log("NEXXT")
            text = "TEXT";
            return "text";
        }

but I can't modify the preview text (I need to add absolute URLs to images).
Can you provide an example?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions