Skip to content

Instantly share code, notes, and snippets.

View jaccon's full-sized avatar
:octocat:
Open Source Forever

Jaccon jaccon

:octocat:
Open Source Forever
View GitHub Profile
import React, { useRef } from 'react';
import { Editor } from '@tinymce/tinymce-react';
export default function App() {
const editorRef = useRef(null);
const log = () => {
if (editorRef.current) {
console.log(editorRef.current.getContent());
}
};