mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Textarea Field, Multiline Block (from acbart) (#2663)
* Field Textarea, text_multiline block, generators
This commit is contained in:
committed by
Sam El-Husseini
parent
f717add5a5
commit
6f4476c962
@@ -35,6 +35,12 @@ Blockly.Lua['text'] = function(block) {
|
||||
return [code, Blockly.Lua.ORDER_ATOMIC];
|
||||
};
|
||||
|
||||
Blockly.Lua['text_multiline'] = function(block) {
|
||||
// Text value.
|
||||
var code = Blockly.Lua.multiline_quote_(block.getFieldValue('TEXT'));
|
||||
return [code, Blockly.Lua.ORDER_ATOMIC];
|
||||
};
|
||||
|
||||
Blockly.Lua['text_join'] = function(block) {
|
||||
// Create a string made up of any number of elements of any type.
|
||||
if (block.itemCount_ == 0) {
|
||||
|
||||
Reference in New Issue
Block a user