Repository navigation
Releases
Releases · se7enxweb/expfckeditorhtmlblock
1.4.1 — Composer type exponential-extension
The Composer type exponential-extension
The package type is now exponential-extension, and the package requires
se7enxweb/exponential-legacy-installer: ^2.2.6, the installer that places both exponential-extension and the
original ezpublish-legacy-extension in extension/. A project with an older installer gets 2.2.6 with this
release, in the same composer require or composer update. The extension folder name is unchanged.
ezinfo.php and extension.xml carry the version 1.4.1.
Commits
6c282e8Added: CI through the shared extension workflow2eadd90Updated: Version 1.4.1, with the Composer type exponential-extension
v1.4.0 — CKEditor 5 (GPL)
What's New
CKEditor 5 v48.1.1 replaces FCKeditor 2.2
The legacy FCKeditor 2.2 integration has been replaced with CKEditor 5 v48.1.1 (GPL npm browser build, self-hosted — no CDN dependency).
Media browser — image insertion
- Fixed image insertion from the media browser popup into the editor (
editor.execute('insertImage', { source })) - Fixed script URL resolution: static assets now served without siteaccess prefix (leading-slash
|ezrootfilter) - Fixed single-radio-button edge case using
querySelectorAllinstead ofRadioNodeList.length - Fixed
getAttribute('imgwidth')/getAttribute('imgheight')for non-standard DOM attributes - Fixed
data-imgurlattribute quoting (|ezrootprovides its own quotes)
Insert Link popup — enhanced
- Manual node ID input: type any eZ Publish node ID directly
- Browse content tree button: opens the media browser in link mode; selected object node ID is auto-populated into the input field
- Fixed radio button selection to use
querySelectorAll(handles single or multiple related objects) - Fixed radio button values to use
main_node_id(consistent withexplinktomediaoperator which resolvesexpobject://NODE_IDviaeZContentObjectTreeNode::fetch())
How expobject:// links are resolved
Links are stored as href="expobject://NODE_ID" in the database and resolved at render time by the linktomedia template operator (explinktomedia.php):
| Content class | Resolved URL |
|---|---|
image |
Original image file path |
file / flash |
/content/download/… |
lien |
Raw URL from location attribute |
| (default) | Node path identification string |
Other
- Added back-navigation button (16×16 GIF) in the media browser toolbar
- Registered
mediabrowserpage layout insettings/layout.ini.append.php - Version bumped to 1.4.0
1.3.5
What's Changed
Extension rename
- Renamed extension from
smilefckeditortoexpfckeditorhtmlblock - All internal module, class, template, and settings references updated
smileobject://URI scheme replaced withexpobject://- FCKeditor plugins renamed:
SmileeZlink→expeZlink,SmileeZimage→expeZimage - Template function renamed:
smileGetRelatedObjects→getRelatedObjects
PHP 8 compatibility fixes (datatypes/ezhtml/ezhtmltype.php)
- Replaced old-style constructor
function ezhtmltype()with__construct() - Removed deprecated by-reference (
&) parameter passing from all overriding methods - Replaced undefined PHP 8 constants with their literal integer values
FCKeditor JavaScript fixes (fckeditor/editor/js/fckeditorcode_gecko_2.js)
- Fixed
DOMExceptioninFCK.CreateLink: changeddocument.evaluate()tothis.EditorDocument.evaluate()to avoid cross-document node errors - Fixed
CreateLinkinserting placeholderjavascript:void(0)href: replaced XPath attribute match withgetElementsByTagName+getAttributeto read raw (un-normalised) attribute value - Added
javascript:URL sanitisation inCreateLinkto block XSS via crafted hrefs - Fixed
FCKDialog.CheckFocusevent listener leak: removedonprefix fromremoveEventListenerevent names (onmousedown→mousedown,onfocus→focus) - Fixed
FCKDialog.Showrace condition: moveddialogArgumentsassignment beforelocation.hrefchange - Fixed
FCK.Previewcrash when popup is browser-blocked: added null guard afterwindow.open() - Fixed
FCK.InsertHtmlcrash on empty selection: wrappedFCKSelection.SelectNodein null guard
.htaccess
- Broadened FCKeditor static file rewrite rule to match root-level files (fixes
fckeditor.js404) - Added rewrite rule for
expfckeditorhtmlblock/javascript/static assets
Documentation
- Rewrote
README.mdwith full installation, configuration, file structure, and upgrade-from-smilefckeditor guide