A rich text editor for Bubble’s native mobile editor: paragraph styles, fonts, sizes, bold, lists, headings, links, images, videos, dividers, emojis, colours and alignment — writing Bubble’s own rich text format, so what your users type shows with its formatting anywhere in your app, on web and on mobile.

It runs on the libraries the mobile runtime already ships. There is no external service, no API key and no account.


Quick start

  1. Install the plugin and drag Rich Text Editor onto a page in the native mobile editor.
  2. Give it a height in Bubble’s Layout tab. The editor has no height field of its own — it takes what you give it there. An element inside a group with no height can measure zero, and that is what “the element does not appear” almost always is.
  3. Put the text it should start with in initial_content (or leave it empty).
  4. Save what the user writes in a workflow on Content changed, taking bbcode.

The four formats

The same text comes back in four shapes at once, and the element takes any of the first three in without being told which one it is:

Format State What it is for
BBCode bbcode Bubble’s own rich text format. Save it in a text field and any Bubble text element shows it with its formatting, on web and on mobile.
Plain text plain_text The same words with no formatting: searching, summaries, previews.
HTML html Emails, APIs, or an HTML Block.
JSON json A document model — blocks (paragraph, heading, quote, lists, image, video, divider) with runs and marks — for processing it yourself.

initial_content accepts BBCode, HTML or that JSON. HTML that arrives is cleaned first: scripts, on… handlers and javascript: links are stripped, so content from anywhere can be loaded without worry.


The toolbar

toolbar = Full, Simple or None, and toolbar_layout decides its shape: Scroll is one row you swipe sideways, Expand is one row with an arrow at the end that drops the rest. toolbar_position puts it above or below the text.

The three named controls

The bar opens with three controls that say what the cursor is sitting in, and follow it as it moves: