pub struct Editor(/* private fields */);Implementations§
Source§impl Editor
impl Editor
pub fn from_text_area( text_area: &HtmlTextAreaElement, options: &EditorOptions, ) -> Self
pub fn on<F>(&self, event_name: &str, callback: F)
pub fn on_change<F>(&self, callback: F)
Trait Implementations§
Source§impl DocApi for Editor
impl DocApi for Editor
fn value(&self) -> Option<String>
fn set_value(&self, value: &str)
fn set_gutter_marker<H>(
&self,
line_handle: H,
id: GutterId,
el: &Element,
) -> LineHandlewhere
H: Into<LineHandle>,
fn clear_gutter_marker<H>(&self, line_handle: H, id: GutterId) -> LineHandlewhere
H: Into<LineHandle>,
fn clear_gutter(&self, id: GutterId)
Auto Trait Implementations§
impl Freeze for Editor
impl RefUnwindSafe for Editor
impl !Send for Editor
impl !Sync for Editor
impl Unpin for Editor
impl UnwindSafe for Editor
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