RichEditorCore
Ядро RichEditor, является отдельным компонентом для ленивой подгрузки
Props
v-model
- type:
string - default:
''
Html содержимое редактора
@model true
disabled
- type:
boolean - default:
false
placeholder
- type:
string - default:
''
validator
- type:
Validation - default:
() => (({}) as Validation)
Валидатор, используется объект валидатора v$ из Vuelidate.
imagesUploader
- type:
FilesUploader - default:
null
Загрузчик картинок
По умолчанию превращает файлы в base64
xssWhitelist
- type:
IWhiteList | null - default:
null
Белый список тегов, разрешшенных для превью
Events
| Event name | Properties | Description |
|---|---|---|
| ready | editor MavonEditor - Instance of MavonEditor component | Editor ready |
| update:inputRendered | rendered string - Html value with markdown exec (ex. <b>foo</b> instead of foo) | Input event, called sametime as 'update:modelValue' |
| update:modelValue |
Css
--c-rich-editor-green
- type:
Color
--c-rich-editor-blue
- type:
Color
--c-rich-editor-purple
- type:
Color
--c-rich-editor-pink
- type:
Color
--c-rich-editor-red
- type:
Color
--c-rich-editor-yellow
- type:
Color
--c-rich-editor-orange
- type:
Color