예제 #1
0
 /**
  * Renders the replace.
  *
  * @param string $id     The identifier.
  * @param array  $config The config.
  *
  * @return string The rendered replace.
  */
 public function renderReplace($id, array $config)
 {
     return $this->helper->renderReplace($id, $config);
 }
예제 #2
0
 public function testRenderReplaceWithCKEditorConstants()
 {
     $this->assertSame('CKEDITOR.replace("foo", {"config":{"enterMode":CKEDITOR.ENTER_BR,"shiftEnterMode":CKEDITOR.ENTER_BR}});', $this->helper->renderReplace('foo', array('config' => array('enterMode' => 'CKEDITOR.ENTER_BR', 'shiftEnterMode' => 'CKEDITOR.ENTER_BR'))));
 }