lsendel / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

TextInput which uses an external editor. #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I had the same problem as described in issue #64.

My solution was a new implementation of Blockly.Field which uses an external 
editor.

The code started with a copy of Blockly.FieldTextInput.
The function showEditor_ calls a user supplied function with two arguments:
1. the current value of the input field
2. a callback function which accepts the new value

It is then up to the user to implement the show editor function.

I used a jquery dialog with some form which on submit calls the callback 
function.

The sources are attached.

I would be glad if someone of the blockly team could have a look at it.

Best regards
Achim

Original issue reported on code.google.com by hacimben...@gmail.com on 11 Oct 2012 at 11:42

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by sper...@google.com on 8 Aug 2013 at 12:03