code: public function setEditorConfig($config)
      {
          if ($config instanceof Traversable) {
              $config = ArrayUtils::iteratorToArray($config);
          }
  
          if (!is_array($config)) {
              throw new InvalidArgumentException(
                  'The options parameter must be an array or a Traversable'
              );
          }
  
          $this->editorConfig = $config;
  
          return $this;
      }
docs: Set config for Namespace CKEDITOR.config.
  
  @param array|Traversable $config
  
  @return $this
  @throws \InvalidArgumentException