Skip to main content

Rich text

THIS PAGE IS ABOUT EXPERIMENTAL FEATURES OF POLOTNO!

Please use it carefully. Watch changelog for any changes! And report about any bugs.

By default, Polotno can't render rich text elements. It means you can't style part of the text. Whole text element must have the same style, color, font, etc. But polotno has experimental support for rich text elements, that you need to explicitly enable.

How to enabled rich text support?

Use this:

import { unstable_useHtmlTextRender } from 'polotno/config';

unstable_useHtmlTextRender(true);

When you enable "html renderer", polotno will use very different rendering logic for text elements. Rich text may drop performance of your application if you have many text elements. Please report about any issues you have.

Open Demo