ZF-6184: Dojo Editor addPlugin won't allow duplicates, this prevents multiple seperators to be included

Issue Type: Bug Created: 2009-04-01T22:26:23.000+0000 Last Updated: 2011-04-22T11:08:18.000+0000 Status: Closed Fix version(s): Reporter: Jason Hendry (jasonhendry) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: - ZF-10960



<pre class="literal">
        if (in_array($plugin, $plugins)) {
            return $this;

should allow multiple '|' as seperators

<pre class="literal">
        if (in_array($plugin, $plugins) && $plugin != '|') {
            return $this;

work around


<pre class="literal">
  $plugins = array();
  foreach(array('undo','copy','cut','paste','|','removeFormat','|','bold', 'italic','|','insertOrderedList','insertUnorderedList','|','createLink','unlink') as $plugin) {  
    $plugins[] = (string) $plugin;
    $this->editorElement->setDijitParam('plugins', $plugins);


Posted by Jason Hendry (jasonhendry) on 2009-04-01T22:28:37.000+0000

Fix issue comment

Posted by MediaXtend (mediaxtend) on 2009-05-13T05:43:35.000+0000

I confirm that multiple separators still doesn't work in 1.8.0. It stops adding it to the toolbar after the first one.

Posted by Robert Basic (robertbasic) on 2011-04-22T10:49:53.000+0000

Closing as a duplicate.

Posted by Robert Basic (robertbasic) on 2011-04-22T10:51:25.000+0000

Closing as a duplicate.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.