Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of undefined (reading 'isDisabled') #391

Open
lmvet-ct opened this issue Jan 30, 2024 · 0 comments

Comments

@lmvet-ct
Copy link

lmvet-ct commented Jan 30, 2024

I'm getting this error in my console and I'm not sure how to stop it. Is this something you are aware of?

Any help with this would be great

Thank you

I'm using
"froala-editor": "^4.1.4",
"react-froala-wysiwyg": "^4.1.4",

   import "froala-editor/css/froala_editor.pkgd.min.css";
import "froala-editor/js/plugins.pkgd.min.js";

import FroalaEditorComponent from "react-froala-wysiwyg";
import FroalaEditor from "froala-editor";
import {  useRef, useState } from "react";

const froalaEditorConfig: Partial<FroalaEditor> = {
  height: 400,
  quickInsertEnabled: false,
  imageDefaultWidth: 0,
  imageResizeWithPercent: true,
  imageMultipleStyles: false,
  imageOutputSize: true,
  imageRoundPercent: true,
  imageMaxSize: false,
  imagePaste: false,
  imageUpload: false,
  placeholderText: "",
};

const Froala =() => {
  const editorRef = useRef<FroalaEditorComponent>(null);
  const [model, setModel] = useState<string>("");

  const handleModelChange = (model: string) => {
    setModel(model);
  };
  return (
    <div id="editor">
      <FroalaEditorComponent
        ref={editorRef}
        model={model}
        onModelChange={handleModelChange}
        tag="div"
        config={froalaEditorConfig}
      ></FroalaEditorComponent>
    </div>
  );
};

export default Froala;

index-279f2ba2.js:387 Uncaught TypeError: Cannot read properties of undefined (reading 'isDisabled')
at Pt (index-279f2ba2.js:387:15330)
at HTMLDivElement. (index-279f2ba2.js:387:16761)
at index-279f2ba2.js:512:30830
at st (index-279f2ba2.js:382:5099)
Pt @ index-279f2ba2.js:387
(anonymous) @ index-279f2ba2.js:387
(anonymous) @ index-279f2ba2.js:512
st @ index-279f2ba2.js:382

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant