GitHub 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.

Subscribe

Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at contact@tidycustoms.net. By clicking below, you agree that we may process your information in accordance with our Privacy Policy.