Insert Google Map into Contacts

Good evening, I saw a couple of old posts open without any response on the topic.

I tried inserting the iframe from Google Maps to insert the map into the Contacts page, but it didn’t work.

I inserted the code, it was there, but the map didn’t appear.

Can you enlighten me?

Thanks everyone.

Hi @simgiallorosso,

What version are you working from (e.g. 3.4.0-9?).

Where are you trying to insert it?

-Roger
PKP Team

3.5.0-3 version in use Here

The same page with 3.5.0-2 work!

Hi @simgiallorosso,

Strange. I am seeing it in my browser:

I wonder if it is a browser issue - which browser are you using?

-Roger
PKP Team

Thanks for your help, but what you see is an image to which I linked the Google Map to fix it. Immediately below, if you view the page source, you’ll see the Google Maps iframe code, which doesn’t work on 3.5.0-3.

I have the feeling that the editor, once I copy and paste the iframe code, removes some pieces of code.
Were any changes made between versions 3.5.0-2 and -3 in this regard?

I.e., are there any limitations for importing code (iframes in this case)?

Hi @simgiallorosso,

Thanks for clarifying. I see what you mean now.

Were any changes made between versions 3.5.0-2 and -3 in this regard?

I don’t think so…
There was this change: TinyMCE modal-based controls are not clickable · Issue #11693 · pkp/pkp-lib · GitHub

Did you use TinyMCE for this previously?

You can see the issues that are part of this release here: GitHub · Where software is built

But none of them really stand out to me (other than possibly the TinyMCE issue as noted above) as potentially bringing on this issue.

-Roger
PKP Team

So I don’t have a solution.
But is there any way I can disable the tinymce editor?

@simgiallorosso Hi,

there should not be difference between -2 and -3. Maybe you just had it in database from before?

This behaviour comes with 3.5, where the tinyMCE version is updated and by default is has this security behaviour where it adds sandbox attribute to the iframe.

I created ticket for us to consider easing this restriction. [Main Feature] | iFrames on content pages get sandboxed by tinyMCE · Issue #12404 · pkp/pkp-lib · GitHub

Meanwhile easiest would be removing the sandbox attribute in the database (navigation_menu_item_settings table).

perfect!

now it works!

thanks for the solution

simply check it in the incognito mode. and also adjust the dimension of maps.