How to get Vue component to render in HTML? #778
Unanswered
riccardostokker
asked this question in
Questions & Help
Replies: 1 comment 2 replies
-
You could probably use the createElement function: https://vuejs.org/v2/guide/render-function.html#createElement-Arguments createElement(ServerImage, {
props: {
someProp: 'foobar'
}
}) Hope that helps! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this has already been asked, I couldn't find it anywhere.
So, I have a custom extension:
I have an editor component where I edit articles. The extension works just fine when I'm in the editor and I see things exactly as they should be, but when I export HTML (to be saved in a database) instead of getting the rendered server-image component I get whatever is produced by
toDOM
.In the Editor:

Saved in the database, visible in the frontend:
Expected:
I suppose this is expected behavior, but how could I get the server-image component to render in the exported HTML, without having to painfully program the toDOM function to mirror my ServerImage component?
Beta Was this translation helpful? Give feedback.
All reactions