Multiline textInput

67 views
Skip to first unread message

Rajiv Dey

unread,
Apr 5, 2021, 10:09:57 AM4/5/21
to Blockly
Hi,

I am using blockly 2.20190722.1 version for some contraints I cant update.

I want to implement multiline textinput as like field_multilineinput.js which is available in latest version of blockly. When I see the source code of field_multilineinput.js I was able to notice many functions such as  this.getConstants() are not available in blockly 2.20190722.1 version

Can someone help me to write custom field equivalent to field_multilineinput.js in blockly 2.20190722.1 version.

Thanks in advance.

Regards
Rajiv

koz...@google.com

unread,
Apr 7, 2021, 5:42:15 PM4/7/21
to Blockly
The multiline textinput takes advantage a lot of apis that were added in newer versions. Additionally, I believe that since that version there were significant changes to Fields.
It's not impossible, but it's going to be very difficult to re-implement since it relies on new stuff.
Advice I can give is that you should still extend FieldTextInput and that you can probably reuse the generator code for field_multilinginput (you'll also need the multiline_quote_ helper).
~ Monica
Reply all
Reply to author
Forward
0 new messages