Skip to content

Commit

Permalink
fix title, and iframe for FF
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaSafe committed Nov 27, 2023
1 parent 7aa0126 commit 343a93e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 44 deletions.
2 changes: 1 addition & 1 deletion _dev/src/components/Iframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ watch(iframe.current_url, () => {
<section class="w-full h-full">
<!-- <button @click="reloadIframe()"> reload iframe </button> {{ showLoader }} -->
<!-- {{ classes }} -->
<iframe id="website-iframe" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
<iframe id="website-iframe" sandbox="allow-modals allow-forms allow-popups allow-scripts"
:class="[height, width, showLoader ? 'opacity-50' : '']" class="border-none h-full mx-auto rounded" :src="filteredURL"
frameborder="0"></iframe>
<Loader :visible="showLoader" class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
Expand Down
1 change: 1 addition & 0 deletions _dev/src/scripts/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export default class Iframe {

if (iframe) {
await iframe.addEventListener('load', (e) => {

this.sendPrettyBlocksEvents('initIframe')
this.sendPrettyBlocksEvents('getZones')
emitter.off('stateUpdated')
Expand Down
12 changes: 6 additions & 6 deletions classes/prettyblocks/core/FieldCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ public function secureTitleEntry($array)
'tag' => ($array['tag']) ? pSQL($array['tag']) : 'h2',
'classes' => (isset($array['classes'])) ? array_map('pSQL', $array['classes']) : [],
'value' => ($array['value']) ? $this->_clearValue($array['value']) : '',
'focus' => (bool) $array['focus'],
'inside' => (bool) $array['inside'],
'bold' => (bool) $array['bold'],
'italic' => (bool) $array['italic'],
'underline' => (bool) $array['underline'],
'size' => (int) $array['size'],
'focus' => (bool) (isset($array['focus'])) ? $array['focus'] : false,
'inside' => (bool) (isset($array['inside'])) ? $array['inside'] : true,
'bold' => (bool) (isset($array['bold'])) ? $array['bold'] : false,
'italic' => (bool) (isset($array['italic'])) ? $array['italic'] : false,
'underline' => (bool) (isset($array['underline'])) ? $array['underline'] : false,
'size' => (int) (isset($array['size'])) ? $array['size'] : 12,
];

return $element;
Expand Down
Loading

0 comments on commit 343a93e

Please sign in to comment.