Commit fc1d093e authored by Tino Goratsch's avatar Tino Goratsch

first part at correcting the module names of the wysiwyg editors

parent 10ab433e
<?php
namespace ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer;
namespace ACP3\Modules\ACP3\Wysiwygckeditor\Installer;
use ACP3\Core\Modules;
/**
* Class Migration
* @package ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer
* @package ACP3\Modules\ACP3\Wysiwygckeditor\Installer
*/
class Migration implements Modules\Installer\MigrationInterface
{
......
<?php
namespace ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer;
namespace ACP3\Modules\ACP3\Wysiwygckeditor\Installer;
use ACP3\Core\Modules;
/**
* Class Schema
* @package ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer
* @package ACP3\Modules\ACP3\Wysiwygckeditor\Installer
*/
class Schema implements Modules\Installer\SchemaInterface
{
......
services:
wysiwygckeditor.installer.schema:
class: ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer\Schema
class: ACP3\Modules\ACP3\Wysiwygckeditor\Installer\Schema
wysiwygckeditor.installer.migration:
class: ACP3\Modules\ACP3\WYSIWYGCKEditor\Installer\Migration
class: ACP3\Modules\ACP3\Wysiwygckeditor\Installer\Migration
......@@ -3,7 +3,7 @@ imports:
services:
core.wysiwyg.ckeditor:
class: ACP3\Modules\ACP3\WYSIWYGCKEditor\WYSIWYG\CKEditor
class: ACP3\Modules\ACP3\Wysiwygckeditor\WYSIWYG\CKEditor
arguments:
- '@core.modules'
- '@core.lang'
......
<?php
namespace ACP3\Modules\ACP3\WYSIWYGCKEditor\WYSIWYG;
namespace ACP3\Modules\ACP3\Wysiwygckeditor\WYSIWYG;
use ACP3\Core;
use ACP3\Core\WYSIWYG\Textarea;
/**
* Class CKEditor
* @package ACP3\Modules\ACP3\WYSIWYGCKEditor
* @package ACP3\Modules\ACP3\Wysiwygckeditor
*/
class CKEditor extends Textarea
{
......@@ -166,7 +166,7 @@ class CKEditor extends Textarea
$out = $this->init();
// Add custom plugins
$ckeditorPluginsDir = $this->appPath->getWebRoot() . 'ACP3/Modules/ACP3/WYSIWYGCKEditor/Resources/Assets/js/ckeditor/plugins/';
$ckeditorPluginsDir = $this->appPath->getWebRoot() . 'ACP3/Modules/ACP3/Wysiwygckeditor/Resources/Assets/js/ckeditor/plugins/';
$js = "CKEDITOR.plugins.addExternal('codemirror', '" . $ckeditorPluginsDir . "codemirror/');\n";
$js .= "CKEDITOR.plugins.addExternal('divarea', '" . $ckeditorPluginsDir . "divarea/');\n";
......@@ -184,7 +184,7 @@ class CKEditor extends Textarea
$out .= $this->script($js);
return [
'template' => 'WYSIWYGCKEditor/ckeditor.tpl',
'template' => 'Wysiwygckeditor/ckeditor.tpl',
'config' => $out
];
}
......
......@@ -27,10 +27,10 @@
},
"autoload": {
"psr-4": {
"ACP3\\Modules\\ACP3\\WYSIWYGCKEditor\\": ""
"ACP3\\Modules\\ACP3\\Wysiwygckeditor\\": ""
}
},
"extra": {
"installer-name": "ACP3/WYSIWYGCKEditor"
"installer-name": "ACP3/Wysiwygckeditor"
}
}
<?php
namespace ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer;
namespace ACP3\Modules\ACP3\Wysiwygtinymce\Installer;
use ACP3\Core\Modules;
/**
* Class Migration
* @package ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer
* @package ACP3\Modules\ACP3\Wysiwygtinymce\Installer
*/
class Migration implements Modules\Installer\MigrationInterface
{
......
<?php
namespace ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer;
namespace ACP3\Modules\ACP3\Wysiwygtinymce\Installer;
use ACP3\Core\Modules;
/**
* Class Schema
* @package ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer
* @package ACP3\Modules\ACP3\Wysiwygtinymce\Installer
*/
class Schema implements Modules\Installer\SchemaInterface
{
const MODULE_NAME = 'wysiwygtinymce';
/**
* @return array
*/
......
services:
wysiwygtinymce.installer.schema:
class: ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer\Schema
class: ACP3\Modules\ACP3\Wysiwygtinymce\Installer\Schema
wysiwygtinymce.installer.migration:
class: ACP3\Modules\ACP3\WYSIWYGTinyMCE\Installer\Migration
class: ACP3\Modules\ACP3\Wysiwygtinymce\Installer\Migration
......@@ -3,7 +3,7 @@ imports:
services:
core.wysiwyg.tinymce:
class: ACP3\Modules\ACP3\WYSIWYGTinyMCE\WYSIWYG\TinyMCE
class: ACP3\Modules\ACP3\Wysiwygtinymce\WYSIWYG\TinyMCE
arguments:
- '@core.assets.minifier.css'
- '@core.lang'
......
<?php
namespace ACP3\Modules\ACP3\WYSIWYGTinyMCE\WYSIWYG;
namespace ACP3\Modules\ACP3\Wysiwygtinymce\WYSIWYG;
use ACP3\Core;
/**
* Implementation of the AbstractWYSIWYG class for TinyMCE
* @package ACP3\Modules\ACP3\WYSIWYGTinyMCE\WYSIWYG
* @package ACP3\Modules\ACP3\Wysiwygtinymce\WYSIWYG
*/
class TinyMCE extends Core\WYSIWYG\Textarea
{
......@@ -145,7 +145,7 @@ class TinyMCE extends Core\WYSIWYG\Textarea
$config['image_advtab'] = $imagesAdvanced;
return [
'template' => 'WYSIWYGTinyMCE/tinymce.tpl',
'template' => 'Wysiwygtinymce/tinymce.tpl',
'config' => $config
];
}
......
......@@ -27,10 +27,10 @@
},
"autoload": {
"psr-4": {
"ACP3\\Modules\\ACP3\\WYSIWYGTinyMCE\\": ""
"ACP3\\Modules\\ACP3\\Wysiwygtinymce\\": ""
}
},
"extra": {
"installer-name": "ACP3/WYSIWYGTinyMCE"
"installer-name": "ACP3/Wysiwygtinymce"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment