Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Expose CodeMirror.operation() and replaceRange() on Document #803

@peterflynn

Description

@peterflynn

Currently, it's hard to write a command that does text edits without talking directly to Editor._codeMirror, and we don't really want that. If we simply exposed operation() and replaceRange(), it would go a long way toward fixing this.

I'm fudging a little by marking this "code cleanup," but I think it would be a very simple change -- little more than proxying down to the matching methods on Document._masterEditor.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions