I am using code mirror 6 single line editor. added Decoration mark. after added mark. need to update few custom attributes of the mark. I used below code and it’s appending existing span. could you pls help
const decoSet = Decoration.set([newDeco.range(from, to)]);
const updateDecoEffect = StateEffect.appendConfig.of([
EditorView.decorations.of(decoSet)
]);
authDetailEditor.dispatch({ effects: updateDecoEffect });