Search code examples
javascripthtmlpopupeditorsummernote

summernote note-popover appearing in top left on clicking button to add editor


I have a problem with summernote.

I've got adding note-popover appearing in top left on clicking button to add editor. here is a screenshot

Anyone else have that problem?

here is a screenshot of the DOM tree

I have last version of the summernote from their website [0.8.9]

 $(discription_list).summernote({
        // width: editorWidth,
        toolbar: [
          ['font-style', ['bold', 'italic', 'underline', 'strikethrough', 'clear']],
          ['para', ['ul', 'ol']],
          ['misc', ['undo', 'redo']],
          ['savebutton', ['save']],
          ['cancelbutton', ['cancel']],
        ],
        buttons: {
          save: SaveButton,
          cancel: CancelButton
        }
      });

Solution

  • Ok, I found a solution, if this helps someone.

         $(discription_list).summernote({
            // width: editorWidth,
            popover: {
              image: [],
              link: [],
              air: []
            },
            toolbar: [
              ['font-style', ['bold', 'italic', 'underline', 'strikethrough', 'clear']],
              ['para', ['ul', 'ol']],
              ['misc', ['undo', 'redo']],
              ['savebutton', ['save']],
              ['cancelbutton', ['cancel']],
            ],
            buttons: {
              save: SaveButton,
              cancel: CancelButton
            }
          });