/** * 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); }
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')))); }