Estoy tratando de agregar algún atributo personalizado usando formatText. Lo que he probado hasta ahora:
var Parchment = Quill.import('parchment'); var commentAttributor = new Parchment.Attributor.Attribute('comment', 'comment', { scope: Parchment.Scope.INLINE }); Quill.register(commentAttributor, true);y el delta se ve así:
"ops": [ { "insert": "aa" }, { "attributes": { "comment": "abc", "action": true }, "insert": "aaaaaa" }, { "insert": "aaa" }, { "attributes": { "storyblock": true }, "insert": "\n" }, { "insert": "\n" } ]Sin embargo, cuando restauré los datos de delta, el atributo desapareció... ¿qué estoy haciendo mal aquí?