Skip to content
Permalink
Browse files

BUGFIX: Insert link styling broken, and inconsistent with Insert media (

fixes #7528)
  • Loading branch information...
adrexia committed Jun 25, 2012
1 parent 609eaba commit e51bf760e9912067570c27ccb24c2b3e2385dbb7
Showing with 10 additions and 7 deletions.
  1. +1 −1 admin/css/screen.css
  2. +1 −1 admin/scss/_style.scss
  3. +8 −5 forms/HtmlEditorField.php

Some generated files are not rendered by default. Learn more.

@@ -1544,7 +1544,7 @@ body.cms-dialog {
padding:0;
}
}
.ss-insert-media, .Actions{
.ss-insert-media, .Actions, .ss-insert-link{
padding:$grid-y $grid-x*2 ;
}
.details{
@@ -299,9 +299,11 @@ function LinkForm() {
$this->controller,
"{$this->name}/LinkForm",
new FieldList(
new LiteralField(
'Heading',
sprintf('<h3>%s</h3>', _t('HtmlEditorField.LINK', 'Insert Link'))
$headerWrap = new CompositeField(
new LiteralField(
'Heading',
sprintf('<h3 class="htmleditorfield-mediaform-heading insert">%s</h3>', _t('HtmlEditorField.LINK', 'Insert Link'))
)
),
$contentComposite = new CompositeField(
new OptionsetField(
@@ -340,8 +342,9 @@ function LinkForm() {
->setUseButtonTag(true)
)
);
$contentComposite->addExtraClass('content');
$headerWrap->addExtraClass('CompositeField composite cms-content-header nolabel ');
$contentComposite->addExtraClass('ss-insert-link content');
$form->unsetValidator();
$form->loadDataFrom($this);

0 comments on commit e51bf76

Please sign in to comment.
You can’t perform that action at this time.