Hi JCE Team,
I've identified a specific issue regarding image URL path separators when using JCE Pro within a Fabrik textarea field on a Windows/XAMPP development environment. While JCE Pro itself seems to generate URLs with backslashes (\) on Windows, this only results in broken images after saving when the content is processed and saved by Fabrik. Saving the same content via Joomla's core article manager works correctly.
Environments Tested:
-
Issue Occurs:
-
Joomla 3.10.12 / PHP 7.4.29 / JCE Pro 2.9.50 / Fabrik 3.10 / Xampp 3.3.0 / Windows 10 PRO
-
Joomla 5.1.2 / PHP 8.2.12 / JCE Pro 2.9.84 / Fabrik 4.5.1 / Xampp 3.3.0 / Windows 10 PRO
-
Joomla 5.1.2 / PHP 8.2.12 / JCE Pro 2.9.84 / Fabrik 4.5.1 / Xampp 3.3.0 / Windows 11 PRO
-
-
Working Correctly (Linux Control):
-
Joomla 4.4.1 / PHP 8.1.27 / JCE Pro 2.9.80 / Fabrik 4.5.1 / Linux Webhost (CloudLinux)
-
(Note: Using JCE Pro in all relevant tests)
The Problem & Steps to Reproduce (on Windows/XAMPP):
-
Configure JCE Path: In JCE Profile -> Plugin Parameters, set a dynamic path like images/$id.
-
Test 1: Joomla Core Article:
-
Edit or create a standard Joomla article.
-
Use JCE to insert an image (either via the Image Manager button or Paste/Drag&Drop).
-
Observation 1: The JCE Image Manager dialog may show the URL with backslashes (\) on Windows.
-
Save the Joomla article.
-
Result 1: Check the saved article's source code or view it on the frontend. The <img> tag's src attribute has correct forward slashes (/) and the image displays perfectly. Joomla's saving process seems to normalize the path.
-
-
Test 2: Fabrik Textarea Field:
-
Edit or create a Fabrik record/form containing a textarea element configured to use the JCE editor.
-
Use JCE within that Fabrik field to insert an image (either via the Image Manager button or Paste/Drag&Drop).
-
Observation 2: The JCE Image Manager dialog may again show the URL with backslashes (\) on Windows.
-
Save the Fabrik record/form.
-
Result 2: Check the saved Fabrik data's source code or view the record on the frontend. The <img> tag's src attribute is incorrect. It either contains backslashes (\) or the slashes are completely missing (e.g., src="https://www.joomlacontenteditor.net/images465your_image.jpg"). The image appears as a broken placeholder.
-
Key Finding:
The root issue appears to be JCE Pro generating URLs with backslashes (\) when running on a Windows environment. While Joomla's core content saving process successfully normalizes these paths to forward slashes (/), Fabrik's saving process does not seem to perform the same normalization, leading to broken image paths specifically when saving content edited via JCE within a Fabrik field.
Expected Behavior:
JCE Pro should ideally generate URLs using only forward slashes (/) regardless of the server OS, to ensure maximum compatibility with other extensions and web standards.
Request:
Could you please investigate why JCE Pro generates backslashes in image paths when running on Windows environments? Even if the final breakage occurs due to how Fabrik processes the saved data, providing standard forward slashes (/) from JCE would likely prevent this specific compatibility issue with Fabrik (and potentially other extensions) on Windows setups.
Thank you for your time and assistance!
