Is there a CMS (WYSIWYG) Component for Agile Toolk

2019-08-24 03:55发布

I haven't seen the code in the standard distribution of Agile Toolkit. Does anyone have a add-on code which integrates Agile Toolkit form with some WYSIWYG editor?

4条回答
兄弟一词,经得起流年.
2楼-- · 2019-08-24 04:12

any jQuery based editor would fit best. last one we played around with was ELRTE and it was very easy to get it up and running.

查看更多
一纸荒年 Trace。
3楼-- · 2019-08-24 04:21

Ok, I have got this code from other developer:

$url=$this->api->locateURL('js','wymeditor/jquery.wymeditor.js');
$this->api->template->append('js_include', '<script type="text/javascript" src="'.
     $url.'"></script>'."\n");


$form->getElement('description')
    ->js(true)
    ->wymeditor(
        array(
            'updateEvent' => 'mouseenter',
            'updateSelector' => '.ui-button',
    ));
查看更多
来,给爷笑一个
4楼-- · 2019-08-24 04:23

With this we can add a field richtext maybe?! Don't forget the all mighty TinyMCE and FCKEditor

查看更多
Bombasti
5楼-- · 2019-08-24 04:39

It have been half year since the question was asked and now there is a dedicated add-on for Agile Toolkit called "CMS". The component is based on "elRTE"

Screencast http://www.youtube.com/watch?v=h5dmAnvri1I&feature=plcp

Sources: https://github.com/atk4/ambient-addons

查看更多
登录 后发表回答