var txtComment = new cc.EditBox(cc.size(150, 150), new cc.Scale9Sprite(Round));
txtComment.setTag("txtComment");
txtComment.setFontName(ui.fontName);
txtComment.setAnchorPoint(0, 0);
txtComment.setInputMode(cc.EDITBOX_INPUT_MODE_ANY);
txtComment.setContentSize(cc.size(50, 50));
txtComment.setPosition(cc.p(0, 0));
txtComment.setFontColor(cc.color("#000000"));
txtComment.setFontSize(20);
txtComment.setMaxLength(50);
txtComment.setDelegate(this);
I am using this code for my edit box , base on the documentation , when setInputmode to any , it should be multi line , but after i set it to cc.EDITBOX_INPUT_MODE_ANY , it seems like still in single line.
I would like to have a multiline Editbox just like normal html textarea , may i know how to achieve in coco2dx-js