Use HTMLEditorField for LiteralField (Fixes #268)

This commit is contained in:
Will Rossiter 2015-06-13 14:17:57 +12:00
parent 71b615b0b6
commit 11dfa1e3ad
2 changed files with 2 additions and 6 deletions

View File

@ -72,7 +72,7 @@ class EditableLiteralField extends EditableFormField {
}
public function getFieldConfiguration() {
$textAreaField = new TextareaField(
$textAreaField = new HTMLEditorField(
$this->getSettingName('Content'),
"HTML",
$this->getContent()

View File

@ -67,9 +67,9 @@ li.class-UserDefinedForm > a .jstree-pageicon { background-position: 0 -64px; }
overflow: hidden;
}
.FieldEditor .FieldList .EditableFormField * {
display: inline;
vertical-align: middle;
}
.FieldEditor .FieldList .EditableFormField .fieldHandler,
.FieldEditor .FieldList .EditableFormField .handle {
cursor: move;
@ -112,10 +112,6 @@ li.class-UserDefinedForm > a .jstree-pageicon { background-position: 0 -64px; }
padding: 3px;
clear: both;
}
.FieldEditor .FieldList .EditableFormField .extraOptions * {
display: block;
}
.FieldEditor .FieldList .EditableFormField .extraOptions .handle {
float: left;
margin-right: 3px;