summernote icon indicating copy to clipboard operation
summernote copied to clipboard

Can't resize editor height on mobile

Open dandv opened this issue 11 years ago • 6 comments

In Chrome on Android, it's not possible to drag the bottom handle of the editor:

image

The entire page will scroll instead.

dandv avatar May 29 '15 12:05 dandv

This is a major issue in the mobile, I tried implementing the JQuery UI Resize option but the text won't appear as we type. So I feel this is pretty important issue to be addressed soon.

JeganGitHub avatar Oct 02 '15 20:10 JeganGitHub

+1 This needs to be implemented. Anyone know if there is any progress on this?

san avatar Mar 11 '16 16:03 san

This issue not fixed yet. The status bar still not dragable on touch devices. . Any updates whether this will be fixed?

daveteu avatar Jul 01 '16 13:07 daveteu

Wow almost 2 years and this still needs to be fixed... This is a pretty major issue considering a lot of users are on mobile devices.

SlinkyPotato avatar Jun 07 '17 17:06 SlinkyPotato

Hello Amaredeus ,

I fixed it by adding a custom Jquery UI Mobile, (Only event Plugin), and replace mouseup by vmouseup in JS File :

` $statusbar.on('vmousedown', function (event) { event.preventDefault(); event.stopPropagation();

    var editableTop = $editable.offset().top - $document.scrollTop();
    var onMouseMove = function (event) {
      var height = event.clientY - (editableTop + EDITABLE_PADDING);

      height = (options.minheight > 0) ? Math.max(height, options.minheight) : height;
      height = (options.maxHeight > 0) ? Math.min(height, options.maxHeight) : height;

      $editable.height(height);
    };

    $document
      .on('vmousemove', onMouseMove)
      .one('vmouseup', function () {
        $document.off('vmousemove', onMouseMove);
      });
  });
};`

I hope it help.

Cdt

mchaabane avatar Jul 07 '17 14:07 mchaabane

This has been added to the Projects List, you can check the progress here https://github.com/summernote/summernote/projects/3 You can continue to discuss this issue here, but this is marked as closed to make it easier to manage new issues, thank you.

DennisSuitters avatar Dec 05 '20 05:12 DennisSuitters