Download the PHP package itech-world/sulu-grapesjs-bundle without Composer

On this page you can find all versions of the php package itech-world/sulu-grapesjs-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 sulu-grapesjs-bundle

GrapesJS Bundle for Sulu

Developed by Steeven THOMAS

GitHub license Sulu compatibility

SuluGrapesJsBundle extends the Sulu CMS to offer GrapesJS editor integration in Sulu Admin for content editing

📂 Requirements

🛠️ Features

🇬🇧 Available translations

📦 GrapesJS Dependencies

📝 Installation

Composer

Symfony Flex

If you don't use Symfony Flex, you can add the bundle to your config/bundles.php file:

Symfony symlink

Configuration

The bundle requires no specific configuration for basic usage. Image formats are fetched dynamically from the Sulu API.

Note: In preview mode, the GrapeJS canvas automatically inherits all stylesheets and scripts loaded by Sulu's preview system. No additional configuration is needed — your frontend styles are applied to the canvas content out of the box.

Breaking change: The images_formats configuration option has been removed. Image formats are now retrieved dynamically from the Sulu API (/admin/api/formats.json). If your config/packages/itech_world_sulu_grapejs.yaml still contains images_formats, remove it to avoid a Symfony configuration error.

Detached preview media behavior

When the Sulu preview is detached (opened in a separate window), the native Sulu media overlay opens in the admin window — which may not be visible. By default, the custom GrapeJS Asset Manager (with pagination and search) is used instead.

To force the native Sulu overlay even in detached mode:

BACK

Edit the config/routes.yaml file to add the bundle to the list of routes:

Edit the assets/admin/package.json to add the bundle to the list of bundles:

Edit the assets/admin/app.js to add the bundle in imports:

In the assets/admin/ folder, run the following command:

or

🖼️ Builder in Preview (Recommended)

The recommended way to use the GrapeJS editor is directly inside the Sulu Preview panel. Changes made in the editor are automatically synchronized with the Sulu form, so you can save and publish using the native Sulu toolbar buttons.

How it works:

The BuilderContentController automatically injects all required variables (publish_state, translations, frontend_css_path, frontend_js_path, template, webspace, locale, id) into the template context for both frontend rendering and preview mode.

In preview mode, when the user opens the Asset Manager (double-click on an image or click "Choose a document"), the native Sulu media selection overlay opens instead of the basic GrapeJS panel. This gives access to all media collections, search, and pagination natively.

To enable the GrapeJS editor in preview, create a templates/bundles/SuluWebsiteBundle/Preview/preview.html.twig file with the following content:

Note: The variables locale, webspace, id, translations, frontend_css_path, frontend_js_path, and previewContentReplacer are automatically available in the template context thanks to BuilderContentController. You only need to explicitly pass json_builder_html and json_builder_css from the content object.

🔧 Standalone Builder (Optional)

If you prefer to open the GrapeJS editor in a separate tab instead of using the preview, you can enable the standalone builder mode. This adds an "Open Builder" button in the Sulu Admin toolbar for pages using the builder template.

In your config/packages/itech_world_sulu_grapejs.yaml:

Important: frontend_css_path and frontend_js_path are only needed for standalone mode. The standalone builder opens in a separate tab outside of Sulu's preview, so it cannot auto-detect frontend assets. You must provide the paths manually. In preview mode, assets are detected automatically.

Then clear the admin cache:

In standalone mode, the builder has its own Save and Publish buttons that communicate directly with the Sulu API.

Note: Both modes can coexist. When enable_standalone_builder is true, the builder is available both in preview and via the toolbar button.

🖼️ Image Format Selector

When an image inserted via the Sulu media library is selected in the editor, a Format dropdown appears in the component settings panel (traits), right below the "Alt text" field. It lists all image formats configured in your image-formats.xml, along with their scale dimensions.

Scenario Behavior
Image from Sulu (just selected) Dropdown populated immediately with "Original" + all Sulu formats
Image from Sulu (loaded from saved HTML) Thumbnails fetched on selection via API, dropdown populates after a brief loading state
Image without data-media-id (manual URL) Format dropdown is hidden
Format changed in dropdown src attribute is updated, canvas reflects the new resolution
"Original" selected Reverts to the full-resolution URL

🐛 Bug and Idea

See the open issues for a list of proposed features (and known issues).

💰 Support me

You can buy me a coffee to support me this plugin is 100% free.

Buy me a coffee

👨‍💻 Contact

📘  License

This bundle is under the MIT License.


All versions of sulu-grapesjs-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sulu/sulu Version ^3.0
symfony/stimulus-bundle Version ^2.17
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 itech-world/sulu-grapesjs-bundle contains the following files

Loading the files please wait ...