Hello
I use Sun Editor in a Next version 14 project along with React Hook Form.
The problem is that when I set the property (charCounter: true), the following error occurs:
Unhandled Runtime Error
TypeError: functions.getCharCount is not a function
Call Stack
HTMLSpanElement.eval
node_modules\suneditor\src\lib\core.js (5813:1)
Editor component:
`import React from 'react'
import dynamic from 'next/dynamic'
import 'suneditor/dist/css/suneditor.min.css';
Hello I use Sun Editor in a Next version 14 project along with React Hook Form. The problem is that when I set the property (charCounter: true), the following error occurs:
Unhandled Runtime Error TypeError: functions.getCharCount is not a function Call Stack HTMLSpanElement.eval node_modules\suneditor\src\lib\core.js (5813:1)
Editor component:
`import React from 'react' import dynamic from 'next/dynamic' import 'suneditor/dist/css/suneditor.min.css';
const SunEditor = dynamic(() => import('suneditor-react'), { loading: () =>
Loading...
, ssr: false, })interface EditorProps { name: string; placeholder: string; }
// btnList // plugList
const Editor: React.FC = ({ name, placeholder }) => {
return (
) }
export default Editor`![char](https://github.com/JiHong88/suneditor/assets/68269398/43709a6c-17f0-45ec-8532-0e078dd98596)