tinymce-editor/metadata.php

73 lignes
2.4 KiB
PHP
Brut Vue normale Historique

2020-06-09 03:09:43 +02:00
<?php
2023-04-02 23:00:41 +02:00
/**
2024-12-04 15:09:22 +01:00
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2020-06-09 03:09:43 +02:00
*
2024-12-04 15:09:22 +01:00
* @copyright (C) 2022 Marat Bedoev, bestlife AG
* @copyright (C) 2023 O3-Shop (https://www.o3-shop.com)
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
2020-06-09 03:09:43 +02:00
*/
2023-04-20 22:31:49 +02:00
declare(strict_types=1);
use O3\TinyMCE\Application\Core\Setup\Events;
2024-12-03 14:43:55 +01:00
use O3\TinyMCE\Application\Model\Constants;
2020-06-09 03:09:43 +02:00
$sMetadataVersion = '2.1';
2023-04-20 22:31:49 +02:00
$aModule = [
2024-12-03 14:43:55 +01:00
'id' => Constants::OXID_MODULE_ID,
2023-04-02 23:00:41 +02:00
'title' => 'TinyMCE Editor',
2023-05-04 11:53:24 +02:00
'description' => 'TinyMCE 6 integration for O3-Shop, ported to OXID eShop',
2023-04-07 21:01:44 +02:00
'thumbnail' => 'logo.png',
2024-12-03 14:43:55 +01:00
'version' => '2.0.0',
2023-05-04 11:53:24 +02:00
'author' => 'D3 Data Development, O3-Shop, Marat Bedoev',
2023-04-02 23:00:41 +02:00
'url' => 'https://www.o3-shop.com/',
2020-06-09 03:09:43 +02:00
'extend' => [
2023-04-10 22:47:06 +02:00
OxidEsales\Eshop\Core\ViewConfig::class => O3\TinyMCE\Application\Core\ViewConfig::class,
2022-06-09 21:11:02 +02:00
],
'controllers' => [
2023-04-10 22:47:06 +02:00
'tinyfilemanager' => O3\TinyMCE\Application\Controller\Admin\TinyFileManager::class,
2022-06-09 21:11:02 +02:00
],
'templates' => [
2024-12-04 11:40:54 +01:00
'@' . Constants::OXID_MODULE_ID.'/admin/filemanager.tpl' => 'views/smarty/admin/filemanager.tpl',
2024-12-03 16:00:24 +01:00
'@' . Constants::OXID_MODULE_ID.'/admin/editorswitch.tpl' => 'views/smarty/admin/editorswitch.tpl',
2020-06-09 03:09:43 +02:00
],
'blocks' => [
[
2024-12-03 14:43:55 +01:00
'template' => 'bottomnaviitem.tpl',
'block' => 'admin_bottomnaviitem',
'file' => 'views/smarty/blocks/admin/bottomnaviitem_admin_bottomnaviitem.tpl',
2023-04-10 22:47:06 +02:00
],
2020-06-09 03:09:43 +02:00
],
'settings' => [
/* enabling tinyMCE for these classes */
[
'group' => 'tinyMceMain',
'name' => 'aTinyMCE_classes',
'type' => 'arr',
'value' => [
"article_main",
"category_text",
"content_main",
"newsletter_main",
2023-04-10 22:47:06 +02:00
"news_text",
2020-06-09 03:09:43 +02:00
],
2023-04-10 22:47:06 +02:00
'position' => 0,
2020-06-09 03:09:43 +02:00
],
2022-06-09 21:11:02 +02:00
[
'group' => 'tinyMceMain',
'name' => 'blTinyMCE_filemanager',
'type' => 'bool',
'value' => true,
2023-04-10 22:47:06 +02:00
'position' => 2,
2024-12-04 14:44:41 +01:00
],
2023-04-10 22:47:06 +02:00
],
'events' => [
'onActivate' => Events::class.'::onActivate',
2024-12-04 14:44:41 +01:00
'onDeactivate' => Events::class.'::onDeactivate',
],
2020-06-09 03:09:43 +02:00
];