@@ -232,7 +232,7 @@ class FormHelper extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
$html = '<div class="js-text-editor" data-params=\''.json_encode($params, JSON_HEX_APOS).'\'>';
|
$html = '<div class="js-text-editor" data-params=\''.json_encode($params, JSON_HEX_APOS).'\'>';
|
||||||
$html .= '<script type="text/template">'.(isset($values[$name]) ? $values[$name] : '').'</script>';
|
$html .= '<script type="text/template">'.(isset($values[$name]) ? htmlspecialchars($values[$name], ENT_QUOTES, 'UTF-8', true) : '').'</script>';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
$html .= $this->errorList($errors, $name);
|
$html .= $this->errorList($errors, $name);
|
||||||
|
|
||||||
|
|||||||
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -63,7 +63,7 @@ KB.component('text-editor', function (containerElement, options) {
|
|||||||
|
|
||||||
// Order is important for IE11 (especially for the placeholder)
|
// Order is important for IE11 (especially for the placeholder)
|
||||||
var textWrapper = KB.dom(containerElement).find('script');
|
var textWrapper = KB.dom(containerElement).find('script');
|
||||||
textareaElement.text(textWrapper.innerText);
|
textareaElement.html(textWrapper.innerHTML);
|
||||||
|
|
||||||
if (options.placeholder) {
|
if (options.placeholder) {
|
||||||
textareaElement.attr('placeholder', options.placeholder);
|
textareaElement.attr('placeholder', options.placeholder);
|
||||||
|
|||||||
Reference in New Issue
Block a user