vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Nested linked editing regions not working #161

Open aeisenberg opened 11 years ago

aeisenberg commented 11 years ago

In an html editor, type tt ctrl+space and then in the text do the same. I would expect that the caret is placed selecting the text of the inner tt tag, but it is not.

Looks like there is a problem with the nested linked editing. Could be an orion issue. Have not tried.

aeisenberg commented 11 years ago

Looks like this is an orion bug (after playing around with this on an orion instance). I'll see if there is an easy fix here and port back the fix.

aeisenberg commented 11 years ago

Not a small fix, so will wait for 0.5 to look at this. In editorFeatures.js, the enterLinkedMode function will just return if already in linked mode (hence nested linked mode is just not supported). What needs to happen is that each time we enter linked mode, we push the old linked mode model (if one exists) on a stack so that it can be popped later when the current linked mode is existed.