Download the PHP package woit/wit-loremipsum without Composer

On this page you can find all versions of the php package woit/wit-loremipsum. 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 wit-loremipsum

Dummy Text for CKEditor

TYPO3 extension wit_loremipsum

Adds a dummy text button to the CKEditor 5 toolbar of the TYPO3 Rich Text Editor (RTE). Editors choose the kind of dummy text from a dropdown and it is inserted at the current cursor position. This helps editors and integrators to fill content elements quickly when building or testing layouts.

Features

Compatibility

Extension version TYPO3 PHP
2.x 14 8.2+
1.x 12 -

Installation

Composer

Then set up the extension, for example with:

TYPO3 Extension Repository (TER)

Download the extension from https://extensions.typo3.org/extension/wit_loremipsum and activate it in the Extension Manager.

After installation, flush all caches.

Configuration

Default RTE preset

The extension registers its own configuration as the default RTE preset:

Configuration/RTE/Default.yaml imports the TYPO3 core default preset and adds the Lorem Ipsum button at the end of the toolbar. All other settings of the core preset (headings, styles, alignment, tables) stay the same.

Note: if another extension also sets the default preset, the extension that is loaded last wins.

Custom RTE preset

If your site uses its own RTE preset (for example set via Page TSconfig RTE.default.preset = my_preset), import the plugin configuration in your preset YAML and add loremIpsum to the toolbar:

Configuration/RTE/Plugin.yaml only loads the CKEditor plugin. It does not change the toolbar or any other setting of your preset.

Restrict access

By default all backend users see the button in every application context. You can restrict it in Admin Tools > Settings > Extension Configuration > wit_loremipsum:

Setting Description Default
allowedContexts Comma-separated application contexts, e.g. Development,Testing. Sub contexts like Development/Local are included. Empty = all contexts. empty
allowedBackendGroups Comma-separated backend user group UIDs. Groups a user gets through subgroups count as well. Empty = all users. empty
alwaysAllowAdmins Administrators see the button regardless of their groups. The context restriction still applies. on

Both restrictions are combined: the button is shown only if the context and the user group are allowed. If the button is not allowed, it is removed from the toolbar and the plugin is not loaded. This works with every RTE preset, no separate presets are needed.

Example: only show the button on development and staging systems, not in production:

Usage

  1. Open a content element with a rich text field (for example "Text") in the TYPO3 backend.
  2. Place the cursor where the text should go.
  3. Click the dummy text icon in the editor toolbar ("Insert dummy text" / "Blindtext einfügen").
  4. Choose the variant:
Variant Inserted content
One sentence One paragraph with one sentence
One paragraph One paragraph with five sentences
Three paragraphs Three paragraphs with five sentences each
Bulleted list Bulleted list with four items (plain paragraphs if lists are disabled in the preset)

If the cursor is inside existing text, the dummy text is added as new block(s) after the current block. An empty block or selected text is replaced. Each insert is one undo step. | Heading with text | Heading (heading2, otherwise heading1 or heading3) and one paragraph |

The dummy text language follows the language of the edited record as configured in the site configuration (German "Blindtext" for German, Lorem Ipsum for all other languages). This also works for records in the default language, no extra configuration is needed.

Tip: TYPO3 sets the CKEditor content language (used e.g. for spell checking) of default language records to editor.config.defaultContentLanguage (fallback: en-US). If your default language is not English, also set it in your preset:

Upgrade from 1.x to 2.0

File structure

File Purpose
ext_localconf.php Sets the default RTE preset
ext_conf_template.txt Extension settings for access restriction
Classes/EventListener/AddDummyTextLanguage.php Passes the record language from the site configuration to the plugin
Classes/EventListener/RestrictLoremIpsumButton.php Removes the button for contexts and user groups that are not allowed
Configuration/RTE/Default.yaml Core default preset plus Lorem Ipsum button
Configuration/RTE/Plugin.yaml Loads the CKEditor plugin, for use in custom presets
Configuration/JavaScriptModules.php Registers the ES module @woit/wit-loremipsum/lorem-ipsum.js
Resources/Public/JavaScript/Ckeditor/lorem-ipsum.js CKEditor 5 plugin with the toolbar dropdown and the dummy texts

Changelog

2.1.2

2.1.1

2.1.0

2.0.0

1.0.1

1.0.0

License

GPL-2.0-or-later


All versions of wit-loremipsum with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
typo3/cms-core Version ^14.0
typo3/cms-rte-ckeditor Version ^14.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 woit/wit-loremipsum contains the following files

Loading the files please wait ...