1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00

update setters and docs

This commit is contained in:
Ian Storm Taylor
2018-08-03 15:08:20 -07:00
parent f6065e9eb8
commit d2f6e06a66
2 changed files with 56 additions and 0 deletions

View File

@@ -763,6 +763,18 @@ class Range extends Record(DEFAULTS) {
return range
}
/**
* Set the `isAtomic` property to a new `value`.
*
* @param {Boolean} value
* @return {Range}
*/
setIsAtomic(value) {
const range = this.set('isAtomic', value)
return range
}
/**
* Set the `isFocused` property to a new `value`.
*
@@ -775,6 +787,18 @@ class Range extends Record(DEFAULTS) {
return range
}
/**
* Set the `marks` property to a new set of `marks`.
*
* @param {Set} marks
* @return {Range}
*/
setMarks(marks) {
const range = this.set('marks', marks)
return range
}
/**
* Set the anchor and focus points to new `values`.
*