示例#1
0
 public function testGetAndSetToolbar2()
 {
     $option = new WysiwygOption();
     $this->assertEquals('toolbar', $option->getToolbar2('toolbar'));
     $option->setToolbar2('other toolbar');
     $this->assertEquals('other toolbar', $option->getToolbar2());
 }
示例#2
0
 public function getData(WysiwygOption $option)
 {
     $data = array('formats' => $this->getConfig('formats'), 'toolbar1' => $option->getToolbar1($this->getConfig('toolbar1')), 'toolbar2' => $option->getToolbar2($this->getConfig('toolbar2')), 'height' => $option->getHeight($this->getConfig('height')), 'style_formats' => $option->getFormats($this->getConfig('style_formats')), 'content_css' => $option->getContentCss($this->getConfig('content_css')));
     return json_encode($data);
 }