public static function manager() { if (!self::$manager) { self::$manager = new Projects_Editor_Manager(); } return self::$manager; }
protected function createTabs($file) { parent::createTabs($file); $editor = Projects_Editor_Manager::manager()->editor($file->id(), $file->code(), $file->highlight()); $editor->read_only = $this->read_only(); $content = $editor->xhtml('content', 'savecontent'); $summary = $this->tabs->tab('Summary'); $summary->setContent($content); }
public function __construct($parent, $file) { parent::__construct($parent, 'Log'); $log = $file->log(); if (!$log) { return; } $editor = Projects_Editor_Manager::manager()->editor($file->log_file(), $file->log(), ''); $editor->read_only = TRUE; $content = $editor->xhtml('log', 'show'); $this->root->appendChild($this->loadElement($content)); }
public function format($file) { $editor = Projects_Editor_Manager::manager()->editor($file->id(), $file->content(), ''); $editor->read_only = TRUE; return $editor->xhtml('content', 'show'); }