studiomitte / rte_ckeditor_abbr

TYPO3 Extension ⇢ Abbreviation Plugin for TYPO3 ckeditor
4 stars 3 forks source link

Not working with TYPO3 12.4.20 #6

Open chkatz opened 1 month ago

chkatz commented 1 month ago

Unfortunately, the plugin no longer works with the latest TYPO3 version 12.4.20. If I click the abbrevation button, nothing happens (tested on Chrome and Firefox).

Only if I select text including a linebreak (br tag), the overlay appears after clicking the button. image

image

I guess there is an error somewhere in abbrevationui.js in in line 100: target = () => view.domConverter.viewRangeToDom(viewDocument.selection.getFirstRange());

chkatz commented 1 month ago

I just found the solution: Update abbrevationui.js, line 100 from target = () => view.domConverter.viewRangeToDom(viewDocument.selection.getFirstRange()); to target = () => view.domConverter.viewRangeToDom(viewDocument.selection.getFirstRange()).getBoundingClientRect();