move quote formatting out of react component
This commit is contained in:
parent
b72d1a78ec
commit
b35a3531bb
5 changed files with 55 additions and 57 deletions
|
@ -23,4 +23,8 @@ export default class DocumentOffset {
|
|||
asPosition(model) {
|
||||
return model.positionForOffset(this.offset, this.atNodeEnd);
|
||||
}
|
||||
|
||||
add(delta, atNodeEnd = false) {
|
||||
return new DocumentOffset(this.offset + delta, atNodeEnd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue