edit

fun edit(fromIndex: Int, toIndex: Int, content: String, attributes: Map<String, String>? = null): Pair<Int, Int>?

Edits this JsonText with the given content and attributes.

Throws

with dev.yorkie.util.YorkieException.Code.ErrInvalidArgument when fromIndex/toIndex splits a UTF-16 surrogate pair, or content holds a lone surrogate half — either fails the whole dev.yorkie.document.Document.updateAsync call.