StippleUI.Editors.editor - Function
editor(fieldname, args...; kwargs...)
Component is a WYSIWYG (“what you see is what you get”) editor component that enables the user to write and even paste HTML.
Examples
Model
julia> @vars EditorModel begin
s_editor::R{String} = "What you see is <b>what</b> you get."
endView
julia> editor(:s_editor, minheight="5rem")
julia> StippleUI.form( autocorrect="off", autocapitalize="off", autocomplete="off", spellcheck="false", [
editor(:s_editor)
])Arguments
- Behaviour
fullscreen::Bool- Fullscreen mode (Note".sync" modifier required!) Example.:fullscreen.sync="isFullscreen"noroutefullscreenexit::Bool- Changing route app won't exit fullscreenparagraphtag::String- Paragraph tag to be used Example.div,p
- Content
placeholder::String- Text to display as placeholder ex.Type your story here...
- Model
value::Stringrequired! - Reactive Model of the component
- State
readonly::Bool- Put component to readonly modedisable::Bool- Disable component
- Style *
square::Bool- Removes border-radius so borders are squared *minheight::String- Minimum height of the component default.10remex.15rem50vh*flat::Bool- Applies a 'flat' design (no borders) *dark::Bool- Notify the component that the background is a dark color *maxheight::String- CSS unit for maximum height of the input area ex.100px90vh*height::String- CSS value to set the height of the editable area ex.100px90vh*toolbaroutline::Bool- Toolbar buttons are rendered "outlined" *toolbarpush::Bool- Toolbar buttons are rendered as a "push-button" type *toolbarrounded::Bool- Toolbar buttons are rendered "rounded" *contentstyle::Dict- Object with CSS properties and values for styling the container ofeditorex.contentstyle!="{ backgroundColor: '#C0C0C0' }"*contentclass::Union{Dict, Vector, String}- CSS classes for the input area ex.my-special-classcontentclass!="{ 'my-special-class': <condition> }"