start rewriting y-richtext

This commit is contained in:
Kevin Jahns
2018-02-15 01:25:08 +01:00
parent fc500a8247
commit da748a78f4
4 changed files with 223 additions and 39 deletions

View File

@@ -73,6 +73,13 @@ export default class Item {
get _length () {
return 1
}
/**
* Some elements are not supposed to be addressable. For example, an
* ItemFormat should not be retrievable via yarray.get(pos)
*/
get _countable () {
return true
}
/**
* Splits this struct so that another struct can be inserted in-between.
* This must be overwritten if _length > 1