Make popup textarea HTML5-compliant in Inspector editor.

Previously, this was a self-closing tag with a value attribute. Neither are supported for the textarea tag in HTML5. It appears that browsers now are actually checking this and/or won't work with it.

Fixes #5222.
This commit is contained in:
Ben Thomson 2020-07-25 22:52:23 +08:00
parent a56e0cdf61
commit d49266ad90
No known key found for this signature in database
GPG Key ID: E2B9C73B52D15AA0

View File

@ -14,7 +14,7 @@
TextEditor.prototype.constructor = Base
TextEditor.prototype.setLinkText = function(link, value) {
var value = value !== undefined ? value
var value = value !== undefined ? value
: this.inspector.getPropertyValue(this.propertyDefinition.property)
if (value === undefined) {
@ -24,7 +24,7 @@
if (!value) {
value = this.propertyDefinition.placeholder
$.oc.foundation.element.addClass(link, 'placeholder')
}
}
else {
$.oc.foundation.element.removeClass(link, 'placeholder')
}
@ -47,7 +47,8 @@
<div class="modal-body"> \
<div class="form-group"> \
<p class="inspector-field-comment"></p> \
<textarea class="form-control size-small field-textarea" name="name" value=""/> \
<textarea class="form-control size-small field-textarea" name="name"> \
</textarea> \
</div> \
</div> \
<div class="modal-footer"> \
@ -93,4 +94,4 @@
}
$.oc.inspector.propertyEditors.text = TextEditor
}(window.jQuery);
}(window.jQuery);