Is there a CMS (WYSIWYG) Component for Agile Toolkit?

笑着哭i 提交于 2019-12-12 01:33:40

问题


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?


回答1:


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.




回答2:


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




回答3:


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:


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



来源:https://stackoverflow.com/questions/5810092/is-there-a-cms-wysiwyg-component-for-agile-toolkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!