mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 11:05:51 +02:00
Merge pull request #33 from creative-commoners/pulls/2.0/escaped-right-title
FIX Cast IFrameURL right title as HTMLText to avoid double escaping
This commit is contained in:
commit
ab75e0cb46
@ -7,6 +7,7 @@ use SilverStripe\Forms\DropdownField;
|
|||||||
use SilverStripe\Forms\CheckboxField;
|
use SilverStripe\Forms\CheckboxField;
|
||||||
use SilverStripe\Forms\NumericField;
|
use SilverStripe\Forms\NumericField;
|
||||||
use SilverStripe\Forms\HTMLEditor\HtmlEditorField;
|
use SilverStripe\Forms\HTMLEditor\HtmlEditorField;
|
||||||
|
use SilverStripe\ORM\FieldType\DBField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Iframe page type embeds an iframe of URL of choice into the page.
|
* Iframe page type embeds an iframe of URL of choice into the page.
|
||||||
@ -46,7 +47,10 @@ class IFramePage extends Page
|
|||||||
$fields->removeFieldFromTab('Root.Main', 'Content');
|
$fields->removeFieldFromTab('Root.Main', 'Content');
|
||||||
$fields->addFieldToTab('Root.Main', $url = new TextField('IFrameURL', 'Iframe URL'));
|
$fields->addFieldToTab('Root.Main', $url = new TextField('IFrameURL', 'Iframe URL'));
|
||||||
$url->setRightTitle(
|
$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(
|
$fields->addFieldToTab(
|
||||||
'Root.Main',
|
'Root.Main',
|
||||||
|
Loading…
Reference in New Issue
Block a user