diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js
index c7c03227be..7a210db724 100644
--- a/src/sunstone/public/js/plugins/templates-tab.js
+++ b/src/sunstone/public/js/plugins/templates-tab.js
@@ -2537,7 +2537,7 @@ function wizard_tab_content(){
''+
''+
'
'+
- ''+
+ ''+
'
'+
''+
''+
@@ -2826,7 +2826,7 @@ function wizard_tab_content(){
''+
'
'+
''+
- ''+
+ ''+
'
'+
''+
''+
@@ -3186,10 +3186,10 @@ function setup_context_tab_content(context_section) {
cell1.appendChild(element1);
var cell2 = row.insertCell(1);
- var element2 = document.createElement("input");
+ var element2 = document.createElement("textarea");
element2.id = "VALUE";
element2.type = "text";
- element2.value = $('input#VALUE', $('#contextTab')).val()
+ element2.value = $('textarea#VALUE', $('#contextTab')).val()
cell2.appendChild(element2);
var cell3 = row.insertCell(2);
@@ -4519,7 +4519,7 @@ var fillTemplatePopUp = function(template, dialog){
cell1.appendChild(element1);
var cell2 = row.insertCell(1);
- var element2 = document.createElement("input");
+ var element2 = document.createElement("textarea");
element2.id = "VALUE";
element2.type = "text";
element2.value = escapeDoubleQuotes(htmlDecode(value));
@@ -4657,7 +4657,7 @@ var fillTemplatePopUp = function(template, dialog){
cell1.appendChild(element1);
var cell2 = row.insertCell(1);
- var element2 = document.createElement("input");
+ var element2 = document.createElement("textarea");
element2.id = "VALUE";
element2.type = "text";
element2.value = htmlDecode(value);