Download the PHP package pimcore/tinymce-bundle without Composer

On this page you can find all versions of the php package pimcore/tinymce-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tinymce-bundle

Pimcore TinyMCE

General

TinyMCE bundle provides TineMCE as WYSIWYG-editor. Similar to Textarea and Input you can use the WYSIWYG editable in the templates to provide rich-text editing.

Installation

Make sure the bundle is enabled in the config/bundles.php file. The following lines should be added:

Configuration

Available configuration options can be found here: config options

Default Configuration

convert_unsafe_embeds is set to true by default. This means that unsafe elements like <embed> or <object> will be converted to more restrictive alternatives. For more details please take a look at the TinyMCE documentation.

Examples

Basic usage

wysiwyg helper doesn't require any additional configuration options. The following code add a second toolbar.

Custom configuration for TinyMCE

The complete list of configuration options you can find in the TinyMCE toolbar documentation.

The WYSIWYG editable allows us to specify the toolbar. If you have to limit styling options (for example only basic styles like <b> tag and lists would be allowed), just use toolbar1 option.

Now the user can use only the limited toolbar.

Global Configuration

You can add a Global Configuration for all WYSIWYG Editors for all documents by setting pimcore.document.editables.wysiwyg.defaultEditorConfig. You can add a Global Configuration for all WYSIWYG Editors for all data objects by setting pimcore.object.tags.wysiwyg.defaultEditorConfig.

For this purpose, you can create a Pimcore Bundle and add the configuration in a file in the Resources/public directory of your bundle (e.g. Resources/public/js/editmode.js).

This will show you the default menubar from TinyMCE in all document editables.

For the data object settings, you should put them in the startup.js in your bundle.

To load the editmode.js file in editmode, you need to implement getEditmodeJsPaths in your bundle class. Given your bundle is named AppAdminBundle and your editmode.js and startup.js created before was saved to src/AppAdminBundle/public/js/editmode.js and src/AppAdminBundle/public/js/startup.js:

Registering global configuration via events

You can also add the file which should be loaded in editmode through an event listener to avoid having to implement a PimcoreBundle just for the sake of adding a file. Given you already have an App bundle and put the JS config from above to public/js/editmode.js you can create an event listener to add the path to the list of loaded files in editmode (please see Events for details on how to implement and register event listeners):

Loading additional TinyMCE plugins that are not shipped with this bundle

You can load additional plugins that are not shipped by default with Pimcore's TinyMCE bundle.

The following example adds the plugin charmap (Note: Included since Pimcore 11.4):

1) Download a TinyMCE dist package matching the version the bundle is currently shipped with. 2) Extract the desired plugin from the TinyMCE dist package and place it in your app's or bundle's resource folder, e.g. copy js/tinymce/plugins/charmap/plugin.min.js to public/static/js/tinymce_plugins/charmap/plugin.min.js. 3) Use TinyMCE's config option external_plugins to load the plugin:


All versions of tinymce-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
pimcore/pimcore Version ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pimcore/tinymce-bundle contains the following files

Loading the files please wait ....