Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Moved core Input feature logic to InputCommand #58

Closed
wants to merge 4 commits into from
Closed

Conversation

maxbarnas
Copy link
Contributor

@maxbarnas maxbarnas commented Oct 27, 2016

this._buffer = new ChangeBuffer( editor.document, editor.config.get( 'typing.undoStep' ) || 20 );

// TODO The above default configuration value should be defined using editor.config.define() once it's fixed.
editor.commands.set( 'inputMutation', new InputCommand( editor ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a command for inputting mutations. It's a generic "input" command.

@Reinmar
Copy link
Member

Reinmar commented Oct 28, 2016

Unfortunately, this is not what we wanted to achieve. We want a simple insert command which accepts a text to insert and other things that it may need. But most importantly, it must be possible to use it easily to simulate text input.

The proposed one requires passing to it mutations which are very hard to produce.

@Reinmar Reinmar closed this Oct 28, 2016
@Reinmar Reinmar deleted the t/48 branch October 28, 2016 09:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants