v-markdown-editor icon indicating copy to clipboard operation
v-markdown-editor copied to clipboard

Render ready markdown text

Open lyf2000 opened this issue 5 years ago • 3 comments

I don't actually understand how to initially render markdown text with markdown style, what do I suppose to add in markdown-editor template?

<markdown-editor
          toolbar=""
          v-model="content"
            ></markdown-editor>

lyf2000 avatar May 15 '20 09:05 lyf2000

You can read config: https://morioh.com/p/2a1c9c34024b

nasa8x avatar May 16 '20 06:05 nasa8x

Indeed you can't have just preview if you do this: <markdown-editor toolbar="" v-model="content" ></markdown-editor>

it will show just a box with the markdown normally without toolbar.

It should be a way to get to the preview variable inside, like adding something like preview-mode which would set that to true:

<markdown-editor toolbar="" v-model="content" preview-mode="true" ></markdown-editor>

Maybe there is one to access the command function but I can't figure it out Cheers.

BogdanFalk avatar Jun 20 '20 21:06 BogdanFalk

I agree, it would be very helpful if we could just pass an option to trigger the preview prop to be set to true on instantiation. I want two instances next to each other with the same model, so the second one shows a preview of what the user enters in the first one

SuryaWebfox avatar Jun 21 '20 02:06 SuryaWebfox