Author: Matt Giuca <mgiuca@chromium.org>
Live at: handler-dot-chromium-ballista.appspot.com
This is a simple web-based text editor that registers as a Ballista handler for text files. As it uses the Ballista polyfill, it works with any requester app using the same polyfill (like Ballista Cloud Demo).
The app requires a web browser with support for Service Workers and Arrow functions. This includes newer versions of Google Chrome / Chromium and Mozilla Firefox. (Tested on Chrome 46 and Firefox 42.)
The demo runs on Google App Engine. You can try it out locally using the App Engine dev appserver.
- Download and install the App Engine Python SDK.
cd
to theballista
directory.- Run the dev appserver:
dev_appserver.py handler.yaml
. - Open the handler in a supported browser. You will be prompted to register this site as an action handler. Click "OK". Close the page.
- You can view and delete handler registrations in the polyfill control panel.
- Open a requester app. For this example, we'll use Ballista Cloud Demo.
- From the requester, click "Open". Select "Ballista Editor Demo". This opens a new tab with the handler.
- Edit the text in the handler, then click "Save".
- The new text will be visible in the requester.