bartbutenaers / node-red-contrib-blockly

A Node Red node for visual programming a function using Blockly
Apache License 2.0
89 stars 22 forks source link

Ace Xml editor clearSelection fails in Monaco editor #74

Closed bartbutenaers closed 3 years ago

bartbutenaers commented 3 years ago

Hi @Steve-Mcl,

I have another issue with our new Blockly version in the Monaco editor on Node-RED 2.0.0 beta1.

This is a new code snippet added by @jsccjj:

image

Which fails in Monaco due to this reason:

image

Is there already an existing way to implement this?

Thanks !!! Bart

Steve-Mcl commented 3 years ago

Hi Bart,

That function is not proxied (though I might add it)

However, .moveCursorTo(0,0) is and should have the same effect.

Failing that, if editor.type == "monaco" you can skip that.

bartbutenaers commented 3 years ago

Hey Steve, Thanks for your fast response!! Then I will use the moveCursorTo function. Don't bother about it then anymore! Bart

bartbutenaers commented 3 years ago

Fixed in the release-1.1.0 branch