コード例 #1
0
 /**
  * Renders a styles set.
  *
  * @param string $name      The name
  * @param array  $stylesSet The style set.
  *
  * @return string The rendered style set.
  */
 public function renderStylesSet($name, array $stylesSet)
 {
     return $this->helper->renderStylesSet($name, $stylesSet);
 }
コード例 #2
0
 public function testRenderStylesSet()
 {
     $this->assertSame('if (CKEDITOR.stylesSet.get("foo") === null) { CKEDITOR.stylesSet.add("foo", {"foo":"bar"}); }', $this->helper->renderStylesSet('foo', array('foo' => 'bar')));
 }