You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i just started a new react project with EditorJS.
I'm facing two issues:
I got two editors on my page. I saw one post saying to remove StrictMode from React but not working.
Header tools not appears in the editor toolbar. Tried to do like the example from this git: import Header from '@editorjs/header' but it says there is no module header... Btw i had to type as unknown as ToolConstructable to avoid typing error (i'm using tsx)
Here is my code:
import EditorJS from '@editorjs/editorjs'
import type { ToolConstructable } from '@editorjs/editorjs'
import Header from '@editorjs/editorjs'
import './App.css'
function App() {
const editeur = new EditorJS({
holder: 'editorjs',
tools: {
header: Header as unknown as ToolConstructable
}
})
return (
<div className='App'>
<div id='editorjs' className='editor' />
</div>
)
}
export default App;
What am i doing wrong ?
The text was updated successfully, but these errors were encountered:
Hi, i just started a new react project with EditorJS.
I'm facing two issues:
import Header from '@editorjs/header'
but it says there is no module header... Btw i had to typeas unknown as ToolConstructable
to avoid typing error (i'm using tsx)Here is my code:
What am i doing wrong ?
The text was updated successfully, but these errors were encountered: