markocupic / tinymce_plugin_builder
Plugin builder for tinyMCE rte under Contao
Installs: 37
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: >=5.4
- contao-community-alliance/composer-plugin: *
- contao/core: >=3.5,<4
Conflicts
- contao/core: 3.0.*
This package is auto-updated.
Last update: 2024-11-22 23:15:14 UTC
README
Dieses Plugin dient als Grundlage/Basis um TinyMCE mit wenig Aufwand mit zusätzlichen, selber geschriebenen Plugins nachzurüsten. Als Vorlage kann https://github.com/markocupic/tinymce_newslink dienen.
Plugin in der config.php konfigurieren
<?php // system/modules/tinymce_mysuperplugin/config/config.php // Add stylesheet $GLOBALS['TL_CSS'][] = 'system/modules/tinymce_newslink/assets/css/newslink.css'; // Add a plugin to the tinymce editor $GLOBALS['TINYMCE']['SETTINGS']['PLUGINS'][] = 'newslink'; // Add a button to the toolbar in tinymce editor $GLOBALS['TINYMCE']['SETTINGS']['TOOLBAR'][] = 'newslink'; // Add a new config row to the tinymce.init method (string) $GLOBALS['TINYMCE']['SETTINGS']['CONFIG_ROW']['test_string'] = "'This is a test string, and you have to quote it with a single quote.'"; // Add a new config row to the tinymce.init method (json_encoded array from a PHP class) $GLOBALS['TINYMCE']['SETTINGS']['CONFIG_ROW']['newslink_news_data'] = json_encode(TinymceNewslink\TinymceNewslink::getContaoNewsArchivesAsJSON()); // Add a new config row to the tinymce.init method (use the loadLanguageFile-hook) $GLOBALS['TL_HOOKS']['loadLanguageFile'][] = array('TinymceNewslink\TinymceNewslink', 'loadLanguageData');