Skip to content

Files

Latest commit

author
Pietro Passarelli
Feb 10, 2021
acfa56b · Feb 10, 2021

History

History
12 lines (11 loc) · 253 Bytes

insert-slate-functions.md

File metadata and controls

12 lines (11 loc) · 253 Bytes
const breakParagraph = () => {
  Editor.insertBreak(editor);
};
const insertTextInaudible = () => {
  Transforms.insertText(editor, '[INAUDIBLE]');
};

const handleInsertMusicNote = () => {
  Transforms.insertText(editor, '♫'); // or ♪
};