0

Hi i just wanted to ask if this is the standard way of making may text area use CKEditor built in on Pyro CMS...

Here is my code.

            <textarea name="new_description" cols="40" rows="5" id="intro" class="blog wysiwyg-simple" >
            <?php echo set_value('car_desc', $car_desc); ?>
            </textarea>

It on the admin module, and I use the "Sample" addon module to start may addon module.

4

1 回答 1

2

我以这种方式添加了这个编辑器

只需在控制器中构建模板时附加它即可。 ->append_metadata($this->load->view('fragments/wysiwyg', $this->data, TRUE))

接着

  echo form_textarea(array('id' => 'body', 'name' => 'code', 'value' => '', 'rows' => 30, 'class' => 'wysiwyg-advanced'));

希望这会对你有所帮助..

于 2012-07-26T06:45:48.677 回答