Skip to content

how to use before-preview-change #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
impronta48 opened this issue Dec 11, 2024 · 0 comments
Open

how to use before-preview-change #300

impronta48 opened this issue Dec 11, 2024 · 0 comments

Comments

@impronta48
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant