1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Editor;
13
14 use Brickrouge\Document;
15 use Brickrouge\Element;
16
17 18 19
20 class PHPEditorElement extends Element implements EditorElement
21 {
22 static protected function add_assets(Document $document)
23 {
24 parent::add_assets($document);
25
26 $document->css->add('assets/editor.css');
27 }
28
29 public function __construct(array $attributes=array())
30 {
31 parent::__construct
32 (
33 'textarea', $attributes + array
34 (
35 'class' => 'editor code php'
36 )
37 );
38 }
39 }