src/edit/input.js
// Insert text into a document.
Insert text into a document.
Insert text into a document .
function inputText(pm, range, text) {
  if (range.empty && !text) return false
  let marks = pm.input.storedMarks || pm.doc.marksAt(range.from)
  pm.tr.replaceWith(range.from, range.to, pm.schema.text(text, marks)).apply({scrollIntoView: true})
  pm.signal("textInput", text)
}
function inputText ( pm , range , text ) { if ( range . empty && ! text ) return false let marks = pm . input . storedMarks || pm . doc . marksAt ( range . from ) pm . tr . replaceWith ( range . from , range . to , pm . schema . text ( text , marks ) ) . apply ( { scrollIntoView : true } ) pm . signal ( "textInput" , text ) }
Insert text into a document.
Insert text into a document .
// :: () #path=ProseMirror#events#textInput // Fired when the user types text into the editor.