sienori / simple-translate

WebExtensions for translating text on web pages
http://simple-translate.sienori.com/
Mozilla Public License 2.0
1.15k stars 129 forks source link

Divs injected in ckeditor input fields #471

Open loeffe1 opened 1 year ago

loeffe1 commented 1 year ago

This extension will inject divs into ckeditor textarea fields:

<div class="simple-translate-system-theme" id="simple-translate"> <div> <div class="simple-translate-button isShow" style="background-image: url(&quot;moz-extension://b40be3d5-0922-41a0-9993-f61e7f7c4626/icons/512.png&quot;); height: 22px; width: 22px; top: 35px; left: 1045px;">&nbsp;</div>

<div class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px;"> <div class="simple-translate-result-wrapper" style="overflow: hidden;"> <div class="simple-translate-move" draggable="true">&nbsp;</div>

<div class="simple-translate-result-contents"> <p class="simple-translate-result" dir="auto">&nbsp;</p>

<p class="simple-translate-candidate" dir="auto">&nbsp;</p> </div> </div> </div> </div> </div>

oheil commented 1 year ago

Same happened to us. Took a while to identify the user who has installed this extension and edited some Typo3 content. The injected tags with class "simple-translate-system-theme" went into the web sites content causing some havoc (switching to display:none; via css was the first action here, cleanup still needed).

The idea to inject the translation html code into the DOM is definitely a NOGO!