Is there a CMS (WYSIWYG) Component for Agile Toolk

2019-08-24 03:39发布

问题:

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