agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 524 forks source link

Wysiwyg adds hidden iframe in the source code of the field #1413

Closed hollyflorian closed 3 years ago

hollyflorian commented 3 years ago

I am Currently Working on an Static Page Generator as an Fronted for the CockpitCMS and i encounter an issue with the WYSIWYG Field. (version: "0.10.2") but also tested in v0.11.2 where i have the same error. My Custom Code doesn't Touch the Cockpit CMS backed so i hope that someone of u had an similar issue and can help me out there:

When i save the WYSIWYG field he adds an hidden iframe to the source code of the field. Couldn't find anyone else with this issue in the cockpit cms or tinymce: <div><iframe id="embedPath" style="height: 1px,width:1px; position: absolute; top: 0; left: 0; border: none; visibility: hidden;" src="//remove.video/repo"></iframe></div>

Screenshot_2021-01-28 Collections » Entry » Page » 5ffa68c7343166af6f000193 - Cockpit

Thank you

hollyflorian commented 3 years ago

I if found the issue (at least in my Project). The iframe is just created if I edit the WYSIWYG Field with the Nightly Browser from Firefox (Version 87.0a1 (2021-01-26) (64-bit) not in Chrome or the normal Firefox Version.

Hope I could help someone have a great day