meteor-ghostdown icon indicating copy to clipboard operation
meteor-ghostdown copied to clipboard

Pre-populating the MarkDown area everytime( For PostEdit function )

Open abhisheksoni27 opened this issue 9 years ago • 2 comments

I have postList, and EveryPost has its own id and a button which goes to the editpost page, which is using the ghostdown package, and pre-populates it with values stored in the collection.

RIght now, I am using Iron Router to pass theid of the post on click, and then passing values using {{ }} syntax.

But, since I am using {{> GhostEditor}}, I cannot prepopulate it with value provided by the Posts.helpers.

How can this be achieved?

The problem is simple:

Posts Collection has both the markdown and the html.

When edit is pressed, Both title and Body value(markdown) should be passed and pre-populated on the editor page.

abhisheksoni27 avatar Jun 30 '15 16:06 abhisheksoni27

Yeah, this has been on my to-do list for a while. I used to be the only person using this package, so I didn't add much extra functionality. But it seems like a lot more people are starting to use it now, so I'll look into making it more flexible for common use cases. Give me a few days to figure out what makes the most sense. I'll probably end up making two versions - one for Autoform and one for regular form usage.

jshimko avatar Jul 01 '15 02:07 jshimko

Alright. Thanks. I'll try at my end too.

abhisheksoni27 avatar Jul 01 '15 05:07 abhisheksoni27