Information Pages data is changed automatically

Post Reply
yaoying
Posts: 133
Joined: 10 Apr 2023, 23:23
Name: 耀影
Location: 深圳
Company Name: 深圳市耀影科技有限公司
Contact:

Information Pages data is changed automatically

Post by yaoying »

1. New piece of a 'Information Pages' open editing, source mode input the following code to save

Code: Select all

<iframe width="560" height="315" src="https://www.youtube.com/embed/u_sDe1zo-YM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
2. Browse this information page and the video plays normally
Back to the information page to reopen the edit, source mode, we found that the code was automatically changed

Code: Select all

<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" frameborder="0" height="315" sandbox="" src="https://www.youtube.com/embed/u_sDe1zo-YM" title="YouTube video player" width="560"></iframe>
3.Click Save, browse the information page again, video error

https://pdemo.rukovoditel.pro/3.4/index ... mo_id=2284
admin/admin
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Information Pages data is changed automatically

Post by support »

This is conflict with ckeditor. I can't fix it.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Information Pages data is changed automatically

Post by Didou12 »

yaoying, you can maybe add a JS which gets the value in the box and checks code for "youtube iframe" and remove the "sandbox" piece before press the submit button. I think it's the problem.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Post Reply