Welcome to the first edition of This Week in ArtisanPack UI. Every Friday, this series will round up the releases and development work that shipped across the ecosystem that week.
This week brought three releases:
- Visual Editor 1.20.0, the largest of the three, with new editing features and a stricter content filter
- CMS Framework 2.18.0, focused on making plugin and theme changes take effect on production servers
- Security 2.2.0, which makes
kses()safe by default
Two of these releases change default behavior. If you run any of them in production, read the next section before you update.
Before you upgrade
Most of this week's changes need no action. These do:
| Package | What changed | What to do |
|---|---|---|
| Visual Editor | Block content, post titles, and excerpts are filtered on save for users without the new unfiltered_html capability. No role has it by default. |
Grant unfiltered_html to roles that need raw HTML, such as admins. Add custom tags or data-* attributes through the ap.visualEditor.contentFilter.allowedHtml filter. |
| Visual Editor | Social blocks use new icons, and the SocialIconRegistry class is gone. |
If you published the block views, run php artisan vendor:publish --tag=visual-editor-blade-views --force. |
| Visual Editor | Entity search now checks each model's viewpolicy. |
Make sure custom content models have a policy, or they won't appear in search results. |
| Visual Editor | Breadcrumbs no longer print schema.org microdata by default. | If that microdata is your only breadcrumb schema, turn the toggle back on or emit JSON-LD in the head. |
| CMS Framework | Plugin and theme changes now rebuild compiled caches and restart queue workers before returning. | Expect slightly longer admin requests on hosts with cached config or routes. If a deployed server runs with APP_ENV=testing, set CMS_UPDATES_OPCACHE_WEB_RESET=true. |
| Security | kses() now filters scripts, event handlers, forms, and unsafe URLs by default. |
If you relied on the old permissive default, pass your own $config. See the new upgrade guide. |
Visual Editor 1.20.0
Visual Editor 1.20.0 adds several authoring features and closes a gap in how block content is stored.
Content is filtered on save
Before this release, block content was saved as sent and printed unescaped. Any author could put a script on a public page.
Saving now reduces markup to an allowlist unless the user holds the new unfiltered_html capability. Without it, <script>, <iframe>, and <embed> tags, event handlers, and javascript: links are removed. The Custom HTML block also disappears from the inserter.
The same filter now covers post titles and excerpts, since the Post Title and Post Excerpt blocks print them unescaped. Existing content isn't rewritten. Stored markup stays until someone without the capability edits it.
New features
- Code block syntax highlighting. The Code block has a Language setting with 15 languages. Code is highlighted on the published page with a bundled copy of Prism, and the palette adjusts to light or dark backgrounds automatically.
- Click to enlarge for images. Image and Gallery blocks can open in a lightbox. The overlay is a real dialog that traps and returns focus, closes with Escape, and respects reduced-motion settings. Themes can turn it on site-wide in
theme.json. - Markdown paste from anywhere. Markdown copied from code editors, notes apps, and Google Docs now converts to blocks. Fenced code keeps its language.
- Import pasted images. When pasted content includes external images, the editor offers to import them into the media library. This requires the Media Library package.
- Taxonomy filter for the Query Loop. Authors can build "posts in category X" loops from the Filters panel instead of editing block markup.
- Content visibility rules. A block can show or hide based on the dynamic content inside it. For example, a "Related posts" section can hide itself when there are no related posts.
- Link search. The link selector now searches every registered content type and inserts the record's public URL.
Notable fixes
- Image borders and shadows now render on the image itself, not around the caption. Focal points also reach the front end.
- Two Tabs blocks on one page no longer share element IDs.
- Backspace and Delete merge text blocks again.
- Spacing inside Groups now matches between the editor and the front end.
- The media import refuses private network addresses and compressed responses, and shadow values can no longer open a CSS comment.
- Saved
_resolved*attributes are stripped before rendering, so saved markup can't override values like share links or post titles. Hosts that resolve their own trees can pass:trust-resolved="true".
CMS Framework 2.18.0
CMS Framework 2.18.0 makes plugin and theme changes take effect on production servers without manual steps.
Plugin and theme changes go live
On a production host with OPcache timestamp checks off, cached routes, and queue workers, installing or updating a plugin only changed files on disk. PHP-FPM kept serving old code, the route cache kept old routes, and workers ran old job classes. Someone had to reload PHP-FPM and rebuild caches by hand.
Now every plugin and theme install, activation, deactivation, update, delete, and rollback does that work itself. It rebuilds the caches the site had, resets OPcache, and restarts queue workers. The core self-updater now restarts queue workers after updates and rollbacks too.
If no OPcache reset reaches the web server, the endpoints return a php_reload_required flag and a warning, so you know a manual reload is still needed.
Two side effects to know about:
- Admin requests that change plugins or themes take longer on hosts with compiled caches.
- The web OPcache reset is skipped while unit tests run, so downstream test suites no longer hit a real PHP-FPM socket.
Custom taxonomy filtering
Query loops can now filter on any taxonomy, not just categories and tags. A new ap.cmsFramework.query.taxQueryfilter hands your listener the query builder, taxonomy, and term IDs. It pairs with the new taxonomy filter in Visual Editor 1.20.0.
Notable fixes
- Two plugin updates that download in the same second no longer share a temp file.
- Theme image borders and shadows land on the
<img>in the editor canvas, matching the front end. - Templates with all-digit slugs, such as
404, no longer cause a 500 error in the site editor.
Security 2.2.0
Security 2.2.0 makes the kses() HTML filter safe by default.
What changed
Previously, calling kses() without a config ran htmLawed with no filtering. Scripts, on* event handlers, and javascript:URLs passed through, so {!! kses( $html ) !!} was open to stored cross-site scripting.
The default is now Security::KSES_SAFE_CONFIG. Under it, kses():
- Removes scripts, styles, frames, and forms and their controls, which blocks fake login forms on your own domain
- Strips event handlers,
styleandclassattributes, and Alpine and Livewire directives such asx-dataandwire:* - Limits URLs to
httpandhttps, plusmailtoandtelfor links - Adds
noopenerto links that open in a new tab and prefixes IDs withuser-content-to prevent DOM clobbering
The ap.security.ksesAllowedTags filter and the $spec argument can no longer re-enable dangerous elements or attributes under the safe default. The same default also applies to sanitize() with the html rule and to the XssProtection middleware.
Other changes
- The
XssProtectionmiddleware now skips password fields by default, so stricter filtering can't break existing logins. - The global
kses()helper now forwards$configand$spec, which it previously dropped. - Several bugs in the bundled copy of htmLawed are fixed.
- A new HTML filtering guide and an Upgrading to 2.2 section cover the new default and how to customize it.
Full release notes
These summaries cover the highlights. The complete changelogs list every change, with links to the related issues:
All three packages are available now through Composer. Documentation is at docs.artisanpackui.dev.

