Closed CanRau closed 8 years ago
Hola, I just stumbled over woofmark last night, and so far I like it.
But I can't figure out how to sync those. I mean, when submitting the form, nothing get posted..? This is my js to init woofmark..
var rte = document.querySelector('.rich-text'); woofmark(rte, { parseMarkdown: megamark, parseHTML: domador, defaultMode: 'wysiwyg' });
Use case, I want to provide an easy (wysiwyg) forum input but behind the scenes everything should be markdown. Do I need parseMarkdown and parseHTML for this? Maybe I should learn more vanilla-js..
Saludos, Can
you need to read from woofmark. Do var foo = woofmark(rte, ...) and then foo.value() will always return markdown
woofmark
var foo = woofmark(rte, ...)
foo.value()
Thank you :)
Hola, I just stumbled over woofmark last night, and so far I like it.
But I can't figure out how to sync those. I mean, when submitting the form, nothing get posted..? This is my js to init woofmark..
Use case, I want to provide an easy (wysiwyg) forum input but behind the scenes everything should be markdown. Do I need parseMarkdown and parseHTML for this? Maybe I should learn more vanilla-js..
Saludos, Can