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