silverstripe-framework/src/Forms/HTMLEditor/HTMLEditorField_Readonly.php

21 lines
365 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\Forms\HTMLEditor;
use SilverStripe\Forms\HTMLReadonlyField;
/**
* Readonly version of an {@link HTMLEditorField}.
*/
class HTMLEditorField_Readonly extends HTMLReadonlyField
{
2016-11-29 12:31:16 +13:00
private static $casting = [
'Value' => 'HTMLText',
];
2016-11-29 12:31:16 +13:00
public function Type()
{
return 'htmleditorfield readonly';
}
}