marktion icon indicating copy to clipboard operation
marktion copied to clipboard

Issue

Open GVALFER opened this issue 2 years ago • 1 comments

Just no issues! just a question. How i remove some plugins, for example, the image? Also, how i get the HTML? ( i see you are using plugin-markdown) Keep with good work. I hope you can maintain this code. 👍 🥇

GVALFER avatar Jul 17 '23 14:07 GVALFER

Thanks for your support!

Here's a pssible approach to get HTML:

import { MarktionRef } from 'marktion'

const marktionRef = useRef<MarktionRef>(null);

useEffect(() => {
  marktionRef.current?.editor.getHTML()
}, [])

<Marktion
  ref={marktionRef}
/>

youking-lib avatar Jul 23 '23 15:07 youking-lib