markshust / magento2-module-pagebuildersourcecode

markshust/magento2-module-pagebuildersourcecode

The Page Builder Source Code module adds a Source Code button to the toolbar of the Page Builder WYSIWYG editor.

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Warning Tests: N/A Security: Pass MIT

Are you the maintainer of markshust?

Packagento pulls markshust's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

MarkShust_PageBuilderSourceCode

Adds a Source Code button to the toolbar of the Page Builder WYSIWYG editor.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes license-MIT-blue.svg

Table of contents

Summary

Page Builder does not come with a way to edit the HTML source code when editing a text block. Sometimes it is desired to override the default styles and edit the HTML manually. This module adds the "code" icon to the toolbar to allow this capability.

If you'd like to learn a bit more about why & how you'd use this module, check out the explainer video of this module, created by Webverse.

Requirements

This module requires the Page Builder module, which comes installed with Magento Commerce 2.3.1+.

Installation

composer require markshust/magento2-module-pagebuildersourcecode
bin/magento module:enable MarkShust_PageBuilderSourceCode
bin/magento setup:upgrade

Usage

This module has no configuration. Just install, and you'll see the code icon in the Page Builder WYSIWYG editor toolbar.

Screenshot

Credits

M.academy

This repository is sponsored by M.academy, the simplest way to learn complex tech skills.

M.academy

License

MIT

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.

[2.0.0] - 2025-03-12

Tagging as major release, since implementation has completely changed.

Fixed

  • Use plugin to support all versions of Magento PR #13.
  • Above update also fixes "removes format and line height icons" issue #12.

[1.0.5] - 2024-03-06

Fixed

  • Fixed Magento widget and variable icons disappearing after installing this module PR #9.

[1.0.4] - 2021-12-20

Fixed

  • Fixed bullet list icon missing from TinyMCE4 editor PR #7.

[1.0.3] - 2021-10-28

Fixed

  • Updated deps to resolve PHP and MF version constraint issues #4.

[1.0.2] - 2019-10-18

Fixed

  • Updated composer version constraints to support newer versions of Magento.

[1.0.1] - 2019-08-28

Fixed

  • Updated dependencies to support Magento 2.3.2 PR #2.

[1.0.0] - 2019-05-27

Added

  • Initial release.
Versions
Version Stability QA Status Compatibility Released
2.0.1 stable Pass Magento 2.4.7-2.4.9 Details 2025-03-17 12:32:34
2.0.0 stable Not tested Not yet tested Details 2025-03-12 12:53:54
1.0.5 stable Not tested Not yet tested Details 2024-03-07 00:51:42
1.0.4 stable Not tested Not yet tested Details 2021-12-20 16:37:06
1.0.3 stable Not tested Not yet tested Details 2021-10-28 14:08:48
1.0.2 stable Not tested Not yet tested Details 2019-10-18 11:05:13
1.0.1 stable Not tested Not yet tested Details 2019-08-28 21:10:40
1.0.0 stable Not tested Not yet tested Details 2019-05-27 05:08:02

Requires 3

Package Constraint
magento/framework ^100|^101|^102|^103
magento/module-page-builder ^1||^2
php ^7||^8

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 1 1 rule violation (UnusedFormalParameter:1)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT

More from markshust

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.