Skip to content

Commit

Permalink
Merge pull request silverstripe#81 from open-sausages/pulls/4.0/1773_…
Browse files Browse the repository at this point in the history
…tinymce_width

Extended width of TinyMCE area, with max width align with other fields
  • Loading branch information
flamerohr authored May 22, 2017
2 parents 08c25e3 + 958540c commit d74e213
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/dist/styles/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -16229,6 +16229,13 @@ input.checkbox,input.radio,input[type=checkbox],input[type=radio]{
flex:0 0 83.33333%;
}

.cms-edit-form:not(.AssetAdmin) .form-group.htmleditor .form__field-holder,.form--inline .form-group.htmleditor .form__field-holder,.ss-insert-link .form__fieldgroup .form-group.htmleditor .form__field-holder{
-webkit-box-flex:0;
-ms-flex:0 0 100%;
flex:0 0 100%;
max-width:calc(895px + 16.66667%);
}

.cms-edit-form:not(.AssetAdmin) .form__field-extra-label,.form--inline .form__field-extra-label,.ss-insert-link .form__fieldgroup .form__field-extra-label{
-webkit-box-flex:0;
-ms-flex:0 0 16.66667%;
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/Form/Form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ input.radio {
@include make-col-span(10);
}

// HTML editor to expand to maximise to the space
// Max-width to visually match other stacked fields + label
.form-group.htmleditor .form__field-holder {
@include make-col-span(12);
max-width: calc(#{$input-max-width} + 16.66667%);
}

.form__field-extra-label {
@include make-col-span(2);
@include make-col-offset(0);
Expand Down

0 comments on commit d74e213

Please sign in to comment.