You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading SVG icons for the editor from a file, the icons will fail to display if the page contains a query string. This regression was introduced in version 2.22 after the following line was introduced:
As you can see, the HREF is split on the pound character. This allowed icons to be correctly referenced by the editor in their respective USE tags. So, for instance, a URL for referencing the "Bold" icon would look like this:
When loading SVG icons for the editor from a file, the icons will fail to display if the page contains a query string. This regression was introduced in version 2.22 after the following line was introduced:
Trumbowyg/src/trumbowyg.js
Line 264 in ad59127
In the previous version, this line used a different argument for splitting the HREF of the current page. It looked like this:
t.svgPath = !!t.doc.querySelector('base') ? window.location.href.split('#')[0] : '';
As you can see, the HREF is split on the pound character. This allowed icons to be correctly referenced by the editor in their respective USE tags. So, for instance, a URL for referencing the "Bold" icon would look like this:
http://localhost/object/edit?page=2#trumbowyg-bold
But, due to the regression, this URL looks like this:
http://localhost/object/edit#trumbowyg-bold
The text was updated successfully, but these errors were encountered: