Download the PHP package thelia/tiptap-module without Composer

On this page you can find all versions of the php package thelia/tiptap-module. 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 tiptap-module

Tiptap — WYSIWYG for Thelia 3

TipTap 3 WYSIWYG editor for the Thelia 3 back-office Twig template. Replaces the legacy Tinymce module — MIT editor core, ~436 KB bundle, no iframe, toolbar matching the legacy feature set.

Install

The compiled bundle ships in Resources/dist/. postActivation mirrors it into public/tiptap/ (or a symlink, depending on Document::CONFIG_DELIVERY_MODE).

If both Tinymce and Tiptap are active, Tiptap detects window.tinymce and stays inactive. Deactivate the legacy module first.

How it works

Listens to the wysiwyg.js back-office hook (already emitted by ~18 BO Twig templates: hook/edit, category/edit, product/edit, folder/edit, content/edit, brand/edit, coupon/edit, sale/edit, attribute/update, feature/update, template/update, tax-rule/update, order-status/update, …). The hook injects:

The bundle then scans the DOM for matching textareas and upgrades them progressively (one per setTimeout(0) slot) so the page stays fluid even with several rich-text fields. Focus / mousedown / touchstart fast-tracks the targeted textarea to the front of the queue.

Default selectors

Excluded: SEO meta fields (meta_description, meta_keywords) and textareas inside .theliablocks-editor, .ace_editor, .CodeMirror, .monaco-editor, .mce-tinymce, [data-no-tiptap], the Symfony web debug toolbar.

To opt out a specific textarea, add data-no-tiptap. To opt in outside the defaults, add class="wysiwyg".

Toolbar

Undo / Redo · Bold / Italic / Underline / Strike · Heading H1–H6 dropdown · Align (L/C/R/Justify) · Bullet & ordered lists · Indent / Outdent · Link / Unlink / Image · Text color / Highlight · Horizontal rule / Blockquote / Table (3×3 + row/column ops) · Inline code · Source HTML toggle · Special character grid · Fullscreen · Print · Preview.

Bootstrap 5 markup with Bootstrap Icons — same look as the rest of the BO Twig templates.

Configuration

A configuration page is available at Modules → TipTap → Configure (/admin/module/Tiptap). It exposes a per-field matrix that toggles the editor for the Summary (chapo) and Conclusion (postscriptum) fields of each catalogue entity (product, content, folder, brand, category), a free-text list of extra CSS selectors, the editor height, and a live sample editor. The detailed description field is always editable.

Settings live in the config table under the tiptap. prefix and are seeded on activation:

Key Default Description
tiptap.toolbar_items full toolbar Comma-separated buttons. Use | to insert a separator.
tiptap.<entity>_summary / tiptap.<entity>_conclusion 1 Per-field matrix; one key per entity × field (e.g. tiptap.product_summary).
tiptap.extra_selectors .wysiwyg,textarea[data-controller~="tiptap-editor"] Additional CSS selectors of textareas to upgrade, on top of the matrix.
tiptap.editor_height 320 Minimum editor height (px).
tiptap.show_toolbar 1 Set to 0 to hide the toolbar.
tiptap.force_pasting_as_text 0 Strip formatting on paste (Phase 2).

The effective mount selector list is composed at render time by Tiptap::buildTargetSelectors() from the matrix plus extra_selectors.

Programmatic API

Compatibility

Development

dist/ is committed so that composer require ships a ready-to-use bundle. Bump version in package.json and Config/module.xml together.

License

LGPL-3.0+ — see LICENSE.txt. TipTap and its extensions are MIT.


All versions of tiptap-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
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 thelia/tiptap-module contains the following files

Loading the files please wait ...