- Import Slice from prosemirror-model to fix type error
- Use new Slice(doc.content, 0, 0) instead of doc.content for replace method
- Remove unused sel variable declaration
- Prefix unused _selection parameter with underscore
Fixes failing 'types' and 'lint' checks in CI