@uiw/react-md-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
19 lines (18 loc) • 614 B
TypeScript
/**
* The MIT License
* Copyright (c) 2018 Dmitriy Kubyshkin
* Copied from https://github.com/grassator/insert-text-at-cursor
*/
/**
* @param {string} val
* @param {number} cursorIdx
* @param {HTMLTextAreaElement|HTMLInputElement} input
* @return {void}
*/
export declare const insertAtLineStart: (val: string, cursorIdx: number, input: HTMLTextAreaElement | HTMLInputElement) => void;
/**
* @param {HTMLTextAreaElement|HTMLInputElement} input
* @param {string} text
* @returns {void}
*/
export declare function insertTextAtPosition(input: HTMLTextAreaElement | HTMLInputElement, text: string): void;