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.
initial_content (or leave it empty).bbcode.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.
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 bar opens with three controls that say what the cursor is sitting in, and follow it as it moves: