12

According to the Redactor docs regarding fixed toolbar settings, I can pass the toolbarFixed flag as true, and the toolbar should stay at the top of the viewport as the user scrolls down, however this isn't working on mobile.

My suspicion as to why it doesn't work on mobile is: the source code is listening for a scroll event, when on mobile it would be a drag event. Has anyone encountered this? If so what was your work around?

Currently running version 10.1.3

Suspect line:

$(this.opts.toolbarFixedTarget).on('scroll.redactor.' + this.uuid, $.proxy(this.toolbar.observeScroll, this));
linuxqwerty
  • 198
  • 16
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
  • The demo on their website does not work on mobile with toolbarFixed. I think you'd better contact them directly via their support forum. – karellm Jul 23 '15 at 12:00
  • Unfortunately they charge another $100 support fee on top of the initial $99 license. Not that it's a lot of $$, just wanted to see if anyone has had any other issues. TBH redactor is decent, but did take some severe customization to make it usable as the primary editor on shouttag.com – Mike Purcell Jul 23 '15 at 23:49
  • I'm using redactor in a modal (fixed) and can't even rely on their toolbarFixed. I agree that it is not the most robust piece of software but arguably one of the best options and they move rather fast at updating it. If you find an alternative though, I'd love to hear about it! – karellm Jul 24 '15 at 08:00
  • 1
    Friggin' redactor, man. It's great when it works, but it really requires an evergreen browser. Have you tried duplicating that line and changing the event type to drag? It's been a long time since I looked at redactor's code, but it's strange to me that it's not just using fixed positioning. Seems like it could just attach the toolbar container directly to the body tag, set the style to `position:fixed; top: 0; left: 0; right: 0; height: ' and let the browser handle things like it's designed to do. – Isochronous Jul 28 '15 at 20:03
  • I'll give her a try. I did try to hack in a drag listener but to no avail. I'll try the fixed position and see if that works. – Mike Purcell Jul 28 '15 at 21:36

2 Answers2

0

This is an issue with the product and should be fixed on their end. However, if they happen to take too long to fix the issue you can always write your own script for positioning the toolbar which would not be so hard given that the toolbar exists in the same context as the rest of the page with no iframes involved.

jacmkno
  • 1,189
  • 11
  • 25
0

This appears to be fixed in version 2!

Mike Purcell
  • 19,847
  • 10
  • 52
  • 89