[Webkit-unassigned] [Bug 165579] New: Providing Touch Bar buttons from JavaScript based on editor cursor position
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 7 19:06:19 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=165579
Bug ID: 165579
Summary: Providing Touch Bar buttons from JavaScript based on
editor cursor position
Classification: Unclassified
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.12
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: andrew.herron at ephox.com
In many rich text editors contextual buttons are made available to the user based on cursor position. This seems like a perfect use case for having the buttons appear on the Touch Bar to provide detailed access to potentially obscure features.
We have a couple of examples at Ephox:
https://www.tinymce.com has floating toolbars that appear in scenarios such as when an image is selected or the cursor is in a table
https://textbox.io has buttons that appear on the end of the main toolbar in the same scenarios. We've discussed moving them to a floating toolbar but the Touch Bar would be an awesome alternative.
In particular, the textbox.io table buttons could make great use of a dynamic Touch Bar slider to adjust cell border width, or an expanded colour picker for the cell border and background buttons. The same could even be applied to other more common features such as font size adjustment and text/highlight colour pickers.
I'm not asking for complete canvas-like access to the Touch Bar, that seems like it would be too easy to abuse (an "allow access" popup may alleviate that but there are already a lot of those). I think a way to replicate contextual buttons as seen in native editors would be a great start.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161208/01f2878c/attachment.html>
More information about the webkit-unassigned
mailing list