示例#1
0
 public function testGetAndSetHeight()
 {
     $option = new WysiwygOption();
     $this->assertEquals(200, $option->getHeight(200));
     $option->setHeight(100);
     $this->assertEquals(100, $option->getHeight());
 }
示例#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);
 }