Download

WYSIWYG

The WYSIWYG field can be used when you want to allow user to use the visual editor instead of the raw text input.

The syntax is very similiar to the textarea field, the main difference is a lack of support for the rows and cols parameters:

{
    "name": "footerText",
    "label": "Footer text",
    "group": "Footer",
    "value": "",
    "type": "wysiwyg"
}

Please remember that you can define separated custom formats which will be available only under theme settings WYSIWYG editor it is described under Theme settings API introduction.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website