Skip to content

Commit

Permalink
FIX Cast IFrameURL right title as HTMLText to avoid double escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Apr 3, 2018
1 parent a28df17 commit 2b3b0c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/IFramePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\NumericField;
use SilverStripe\Forms\HTMLEditor\HtmlEditorField;
use SilverStripe\ORM\FieldType\DBField;

/**
* Iframe page type embeds an iframe of URL of choice into the page.
Expand Down Expand Up @@ -46,7 +47,10 @@ public function getCMSFields()
$fields->removeFieldFromTab('Root.Main', 'Content');
$fields->addFieldToTab('Root.Main', $url = new TextField('IFrameURL', 'Iframe URL'));
$url->setRightTitle(
'Can be absolute (<em>http://silverstripe.com</em>) or relative to this site (<em>about-us</em>).'
DBField::create_field(
'HTMLText',
'Can be absolute (<em>http://silverstripe.com</em>) or relative to this site (<em>about-us</em>).'
)
);
$fields->addFieldToTab(
'Root.Main',
Expand Down

0 comments on commit 2b3b0c8

Please sign in to comment.