vue-markdown icon indicating copy to clipboard operation
vue-markdown copied to clipboard

When "rendered" event is triggered the dom is still not ready

Open fguillen opened this issue 5 years ago • 0 comments

I have this:

<vue-markdown :source="content" v-on:rendered="afterRenderContent"></vue-markdown>

But when the method afterRenderContent is triggered the HTML elements are still not there.

I would like to do DOM HTML elements manipulation after the rendering but I can not. What is the proper way to wait until the DOM is ready?

I have tried to create a JSFiddle to reproduce the issue but looks like the CDN library is no loading properly:

  • https://jsfiddle.net/fguillen/5wamjxke/

fguillen avatar Dec 14 '19 22:12 fguillen