EditorJS/ConfigLoader.php
private function loadTools($config)
    {
        if (!isset($config['tools'])) {
            throw new EditorJSException('Tools not found in configuration');
        }

        foreach ($config['tools'] as $toolName => $toolData) {
            if (isset($this->tools[$toolName])) {
                throw new EditorJSException("Duplicate tool $toolName in configuration");
            }

            $this->tools[$toolName] = $this->loadTool($toolData);
        }
    }
private function loadTools($config)
    {
        if (!isset($config['tools'])) {
            throw new EditorJSException('Tools not found in configuration');
        }

        foreach ($config['tools'] as $toolName => $toolData) {
            if (isset($this->tools[$toolName])) {
                throw new EditorJSException("Duplicate tool $toolName in configuration");
            }

            $this->tools[$toolName] = $this->loadTool($toolData);
        }
    }
private function loadTools ( $ config ) { if ( ! isset ( $ config [ 'tools' ] ) ) { throw new EditorJSException ( 'Tools not found in configuration' ) ; } foreach ( $ config [ 'tools' ] as $ toolName => $ toolData ) { if ( isset ( $ this -> tools [ $ toolName ] ) ) { throw new EditorJSException ( "Duplicate tool $toolName in configuration" ) ; } $ this -> tools [ $ toolName ] = $ this -> loadTool ( $ toolData ) ; } }
Load settings for tools from configuration

@param array $config

@throws EditorJSException
Load settings for tools from configuration