Using Camunda with Form.io
Last updated
Was this helpful?
Was this helpful?
ClassicEditor.defaultConfig = {
toolbar: {
items: [
'heading',
'fontFamily',
'fontSize',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'|',
'indent',
'outdent',
'|',
'imageUpload',
'blockQuote',
'insertTable',
'mediaEmbed',
'alignment:left',
'alignment:right',
'alignment:center',
'undo',
'redo',
'underline'
]
},<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document</title>
<script src="./ckeditor.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css">
<script src='https://cdn.form.io/js/formio.full.min.js'></script>
</head>
<body>
<div id="formio"></div>
<script>
Formio.createForm(document.getElementById('formio'), {
components: [
{
"label": "Text Area",
"applyMaskOn": "change",
"editor": "ckeditor",
"autoExpand": false,
"tableView": true,
"validateWhenHidden": false,
"key": "textArea",
"type": "textarea",
"isUploadEnabled": false,
"wysiwyg": {
"toolbar": ['undo', 'redo', 'underline', 'bold'],
"rows": 3,
"base64Upload": true,
"mediaEmbed": {
"previewsInData": true
}
},
"input": true
}
]
}, {})
</script>
</body>
</html>