summernote-rtl-plugin icon indicating copy to clipboard operation
summernote-rtl-plugin copied to clipboard

Uncaught Error: TOOLTIP: Option "container" provided type "undefined" but expected type "(string|element|boolean)".

Open dv1r opened this issue 7 years ago • 5 comments

I am using jquery 3.3.1 with bootstrap 4.0.0

jquery-3.3.1.min.js:2 Uncaught Error: TOOLTIP: Option "container" provided type "undefined" but expected type "(string|element|boolean)". at Object.typeCheckConfig (bootstrap.js:185) at Tooltip._getConfig (bootstrap.js:2974) at new Tooltip (bootstrap.js:2553) at HTMLButtonElement. (bootstrap.js:3034) at Function.each (jquery-3.3.1.min.js:2) at w.fn.init.each (jquery-3.3.1.min.js:2) at w.fn.init._jQueryInterface [as tooltip] (bootstrap.js:3024) at Renderer.callback (summernote-bs4.js:224) at Renderer.render (summernote-bs4.js:48) at summernote-ext-rtl.js:138

dv1r avatar Feb 22 '18 12:02 dv1r

facing the same issue

pupattan avatar Jun 29 '18 08:06 pupattan

i fix the issue by adding container: 'body', referring here - https://jsfiddle.net/8fm5vq50/17/

pupattan avatar Jun 29 '18 08:06 pupattan

Would you like to open PR to fix it?

On Fri, 29 Jun 2018, 11:11 pupattan, [email protected] wrote:

i fix the issue by adding container: 'body', referring here - https://jsfiddle.net/8fm5vq50/17/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/virtser/summernote-rtl-plugin/issues/3#issuecomment-401282369, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcmbsMRAXj8oSyak5g9nig8RotciyfRks5uBeFDgaJpZM4SPOZ1 .

virtser avatar Jun 29 '18 08:06 virtser

@pupattan Hi there. I can notice no difference in your fiddle than the ones in the documentation. Yet, I tried it with the RTL plugin. But; I still get the same error!!!. Do you have any idea why the error is reproducing??.

Dependencies:

  • jQuery v3.3.1
  • Bootstrap v4.1.3
  • Summernote v0.8.9
  • FontAwesome 5.2.0

Tes3awy avatar Aug 10 '18 18:08 Tes3awy

I found out that the error is produced because of two similar lines in the summernote-ext-rtl.js file.

...
var button = ui.button({
    contents: '<i class="fas fa-paragraph"></i><i class="fas fa-caret-left"></i>',
    tooltip: 'Change text direction to the right', <------ This line
...

When I comment out these two lines the error is no more shown in the console. But the functionality to RTL is missing though.

Does this make the problem more clear??

Tes3awy avatar Aug 10 '18 18:08 Tes3awy