silverstripe-framework/Forms/HTMLEditor/HTMLEditorField_Readonly.php

21 lines
338 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
{
private static $casting = [
'Value' => 'HTMLText',
];
public function Type()
{
return 'htmleditorfield readonly';
}
}