pub struct RichTextEditorProps {
pub field: String,
pub label: String,
pub placeholder: Option<String>,
pub default_value: Option<String>,
pub data_path: Option<String>,
pub error: Option<String>,
}Expand description
Props for RichTextEditor leaf element — rendered by the Quill 2.0.3 plugin.
The plugin emits a container div (<div data-ferro-quill ...>) and a hidden
input that receives the editor’s HTML on every text-change event. The form
handler receives standard field=<html> POST data on submit.
§Security
The editor produces user-controlled HTML. Sanitization on submit is the
consumer’s responsibility — handle this in the form handler before
persisting (e.g. via ammonia).
Fields§
§field: String§label: String§placeholder: Option<String>§default_value: Option<String>§data_path: Option<String>§error: Option<String>Trait Implementations§
Source§impl Clone for RichTextEditorProps
impl Clone for RichTextEditorProps
Source§fn clone(&self) -> RichTextEditorProps
fn clone(&self) -> RichTextEditorProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RichTextEditorProps
impl Debug for RichTextEditorProps
Source§impl<'de> Deserialize<'de> for RichTextEditorProps
impl<'de> Deserialize<'de> for RichTextEditorProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RichTextEditorProps
impl JsonSchema for RichTextEditorProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RichTextEditorProps
impl PartialEq for RichTextEditorProps
Source§fn eq(&self, other: &RichTextEditorProps) -> bool
fn eq(&self, other: &RichTextEditorProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RichTextEditorProps
impl Serialize for RichTextEditorProps
impl StructuralPartialEq for RichTextEditorProps
Auto Trait Implementations§
impl Freeze for RichTextEditorProps
impl RefUnwindSafe for RichTextEditorProps
impl Send for RichTextEditorProps
impl Sync for RichTextEditorProps
impl Unpin for RichTextEditorProps
impl UnsafeUnpin for RichTextEditorProps
impl UnwindSafe for RichTextEditorProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more