datatype

the default data format

string datatype;

Values

  • "text"
  • "html"
  • "markdown"
  • Example

    webix.ui({
        view: "editor",
        value: "<p>Some text</p>",
        datatype: "text",
        upload: "https://docs.webix.com/editor-backend/images"
    });


    Default value:

    "html"
    Details

    The datatype parameter defines the data format of the initial value of Rich Text Editor, as well as specifies the default format that will be used for the getValue()/setValue() calls.

    Back to top