Setting an origin with indentLine() -- is it possible?


#1

When using the indentLine() method, I don’t see a way to specify the origin of the change when indentation occurs. Is there a supported way to get around this? Might an “origin” parameter be added in the future?

When I see the changeObject in the onChanges() method, it’s origin is “+input”. But since I called the method from internal JS code I want to handle it differently from if the user had input the same text.


#2

This is indeed not currently possible, but I’d accept a pull request that adds a third optional origin argument to indentLine.