mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
a56e0cdf61
commit
d49266ad90
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user