summernote / react-summernote

Summernote (Super simple WYSIWYG editor) adaptation for react
http://summernote.org
MIT License
230 stars 108 forks source link

Uncaught TypeError: $node.attr(...).tooltip is not a function #80

Open rb162215 opened 4 years ago

rb162215 commented 4 years ago

I am working on SummerNote mention library and getting error -

i am using "react-summernote": "^2.0.0"

react version - "react": "^16.8.6"

bootstrap - "bootstrap": "^4.4.1"

react-bootstrap - "react-bootstrap": "^1.0.1"

is there any help on this?

Screen Shot 2020-04-23 at 11 25 19 AM

duypham90 commented 4 years ago

@rb162215 You just follow me add more library for resolve this problem. Or or you can visit my page to see the demo. Demo

$ yarn add popper.js
abryant710 commented 3 years ago

@hong-duy looks like your demo page has gone. Is there any other place I can access it?

@rb162215, did you find a solution?

duypham90 commented 3 years ago

@hong-duy looks like your demo page has gone. Is there any other place I can access it?

@rb162215, did you find a solution?

@abryant710 Sorry before that I make it private, I will publish it again. Please see here: Github Demo

In my source, I have used two editor:

Note: Please comment out this code to make sure Editor work well

const handleEditorChange = (content: any, delta: any, source: any, editor: any) => {
    // IF we don't setState for editor, the value of editor will be lost after we click, change or have a new event make state change
    // setValueEditor(content)
    // console.log(content); // rich text
    // console.log(editor.getText()); // plain text
    // console.log(editor.getLength()); // number of characters
  }
absalvamante commented 3 years ago

Had the same problem. I installed specific bootstrap version 4.0.0 and it worked already.