tinymce-editor/metadata.php

81 lines
2.8 KiB
PHP
Raw Normal View History

2020-06-09 03:09:43 +02:00
<?php
2023-04-02 23:00:41 +02:00
/**
* This file is part of O3-Shop TinyMCE editor module.
2020-06-09 03:09:43 +02:00
*
2023-04-02 23:00:41 +02:00
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
2020-06-09 03:09:43 +02:00
*
2023-04-02 23:00:41 +02:00
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with O3-Shop. If not, see <http://www.gnu.org/licenses/>
*
* @copyright Copyright (c) 2022 Marat Bedoev, bestlife AG
2023-04-02 23:00:41 +02:00
* @copyright Copyright (c) 2023 O3-Shop (https://www.o3-shop.com)
* @license https://www.gnu.org/licenses/gpl-3.0 GNU General Public License 3 (GPLv3)
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,
2023-04-19 15:16:59 +02:00
]
2023-04-10 22:47:06 +02:00
],
'events' => [
'onActivate' => Events::class.'::onActivate',
'onDeactivate' => Events::class.'::onDeactivate'
],
2020-06-09 03:09:43 +02:00
];