Issues

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

Description

        if (in_array($plugin, $plugins)) {
            return $this;
        }

should allow multiple '|' as seperators

        if (in_array($plugin, $plugins) && $plugin != '|') {
            return $this;
        }

work around

Example

  $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);
  }

Comments

Fix issue comment

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

Closing as a duplicate.

Closing as a duplicate.