work
This commit is contained in:
@@ -17,7 +17,7 @@ export function applyFormat(editor, format) {
|
||||
if (format === "bullet") prefix("- ");
|
||||
if (format === "number") prefix((index) => `${index + 1}. `);
|
||||
if (format === "quote") prefix("> ");
|
||||
if (format === "link") wrap("[", "](https://)", "opis linku");
|
||||
if (format === "link") wrap("[", "](https://)", "description");
|
||||
editor.focus();
|
||||
editor.dispatchEvent(new Event("input", { bubbles: true }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user