Function ydelta_input_insert

Source
#[no_mangle]
pub unsafe extern "C" fn ydelta_input_insert(
    data: *const YInput,
    attrs: *const YInput,
) -> YDeltaIn
Expand description

Creates a parameter for ytext_insert_delta function. This parameter will tell cursor to insert given elements into current cursor position. While these elements can be of any type (used for embedding ie. shared types or binary payload like images), for the text insertion a yinput_string is expected. If formatting attributes were specified, inserted elements will be wrapped by given formatting attributes.