Skip to content

Install boba-editor

[code, demo]

boba-editor is BobaBoard’s own extension of the QuillJS text editor, and is responsible for anything related to text formatting and embeds (both in “edit” and “display” mode).

First, fork the boba-editor repository in order to save a copy of the code to your own account.

In a terminal on your own machine, enter the local directory where you want to keep your copy of boba-editor, then run the following commands:

Terminal window
# Clone the codebase from github
git clone https://github.com/[YOUR GITHUB USERNAME HERE]/boba-editor.git
# Enter the codebase directory
cd boba-editor
# Install all necessary code
yarn install

In a terminal, run the following command:

Terminal window
yarn run storybook

You should now have a DevServer running at http://localhost:6006 that will look something like the online demo.

Embeds that rely on iFramely won’t work out of the box. If you’re developing for embeds, you have two options:

Section titled “Option 1: Connect to the BobaBoard embeds service (Recommended)”

Given that the embeds service won’t accept requests from localhost for security reasons, you will need to install an “Allow CORS extension” (example for Chrome). Once you allow CORS in your browser window, embeds should automatically start working.

Option 2: Run iFramely on your own machine

Section titled “Option 2: Run iFramely on your own machine”

You can run storybook pointing to a local instance of iFramely by using the yarn run storybook:local-embeds command. To run your own iFramely you can use the instructions here. You will also likely need BobaBoard’s iframely config as a started config. You can ask the webmaster for a copy of this file.