diff --git a/de.js b/de.js index 8eda8bc..15f0166 100644 --- a/de.js +++ b/de.js @@ -71,6 +71,12 @@ Msg = { "tooltip": "", "helpUrl": null }, + "text_print": { + "message0": "Text %1", + }, + "text": { + "message0": "Text %1", + }, "division": { "message0": "Unterteilung %1 %2", "tooltip": "", diff --git a/en.js b/en.js index faf8014..607aaa4 100644 --- a/en.js +++ b/en.js @@ -55,7 +55,13 @@ Msg = { "message0": "paragraph %1", }, "plaintext": { - "message0": "text %1", + "message0": "Text %1", + }, + "text_print": { + "message0": "Text %1", + }, + "text": { + "message0": "Text %1", }, "division": { "message0": "division %1 %2", diff --git a/html_blocks.js b/html_blocks.js index aebc608..3cbea09 100644 --- a/html_blocks.js +++ b/html_blocks.js @@ -154,6 +154,38 @@ var htmlBlocks = "tooltip": "", "helpUrl": "http://www.w3schools.com/tags/tag_html.asp" }, +{ + "type": "text_print", + "message0": "text %1", + "args0": [ + { + "type": "field_input", + "name": "TEXT", + "text": "" + } + ], + "previousStatement": null, + "nextStatement": null, + "colour": 330, + "tooltip": "", + "helpUrl": "http://www.w3schools.com/tags/tag_html.asp" +}, +{ + "type": "text", + "message0": "text %1", + "args0": [ + { + "type": "field_input", + "name": "TEXT", + "text": "" + } + ], + "previousStatement": null, + "nextStatement": null, + "colour": 330, + "tooltip": "", + "helpUrl": "http://www.w3schools.com/tags/tag_html.asp" +}, { "type": "division", "message0": "division %1 %2", diff --git a/html_generators.js b/html_generators.js index d9b793d..0ba7e11 100644 --- a/html_generators.js +++ b/html_generators.js @@ -88,6 +88,18 @@ HtmlGenerator['plaintext'] = function(block) { return code; }; +HtmlGenerator['text_print'] = function(block) { + var text_content = block.getFieldValue('TEXT'); + var code = text_content + '\n'; + return code; +}; + +HtmlGenerator['text'] = function(block) { + var text_content = block.getFieldValue('TEXT'); + var code = text_content + '\n'; + return code; +}; + HtmlGenerator['division'] = function(block) { var value_name = HtmlGenerator.valueToCode(block, 'NAME', HtmlGenerator.ORDER_ATOMIC); var statements_content = HtmlGenerator.statementToCode(block, 'content'); diff --git a/zh-hant.js b/zh-hant.js index 3732422..3a7739c 100644 --- a/zh-hant.js +++ b/zh-hant.js @@ -60,6 +60,12 @@ Msg = { "plaintext": { "message0": "文字 %1", }, + "text_print": { + "message0": "文字 %1", + }, + "text": { + "message0": "文字 %1", + }, "division": { "message0": "區塊 %1 %2" },