Skip to content

1.3.5

Choose a tag to compare

@se7enxweb se7enxweb released this 19 May 11:32

What's Changed

Extension rename

  • Renamed extension from smilefckeditor to expfckeditorhtmlblock
  • All internal module, class, template, and settings references updated
  • smileobject:// URI scheme replaced with expobject://
  • 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 DOMException in FCK.CreateLink: changed document.evaluate() to this.EditorDocument.evaluate() to avoid cross-document node errors
  • Fixed CreateLink inserting placeholder javascript:void(0) href: replaced XPath attribute match with getElementsByTagName + getAttribute to read raw (un-normalised) attribute value
  • Added javascript: URL sanitisation in CreateLink to block XSS via crafted hrefs
  • Fixed FCKDialog.CheckFocus event listener leak: removed on prefix from removeEventListener event names (onmousedown → mousedown, onfocus → focus)
  • Fixed FCKDialog.Show race condition: moved dialogArguments assignment before location.href change
  • Fixed FCK.Preview crash when popup is browser-blocked: added null guard after window.open()
  • Fixed FCK.InsertHtml crash on empty selection: wrapped FCKSelection.SelectNode in null guard

.htaccess

  • Broadened FCKeditor static file rewrite rule to match root-level files (fixes fckeditor.js 404)
  • Added rewrite rule for expfckeditorhtmlblock/javascript/ static assets

Documentation

  • Rewrote README.md with full installation, configuration, file structure, and upgrade-from-smilefckeditor guide