Options
You can customize Simditor by passing optional options when initializing Simditor. Here are some optional options and their default values:
editor = new Simditor
textarea: null
placeholder: ''
defaultImage: 'images/image.png'
params: {}
upload: false
tabIndent: true
toolbar: true
toolbarFloat: true
toolbarFloatOffset: 0
toolbarHidden: false
pasteImage: false
cleanPaste: false
- textarea jQuery Object / HTML Element / Selector String default: null
- placeholder String default: ''
- toolbar Boolean / Array default: true
- toolbarFloat Boolean default: true
- toolbarFloatOffset Number default: 0
- toolbarHidden Boolean default: false
- defaultImage String default: images/image.png
- tabIndent Boolean default: true
- params Object default: { }
- upload Boolean / Object default: false
- pasteImage Boolean default: false
- cleanPaste Boolean default: false
- imageButton Array/String default: ['upload', 'external']
- allowedTags Array default: null
- allowedAttributes Array default: null
- allowedStyles Array default: null
- codeLanguages Array default: null