Fix switching between HTML blocks
[MAILPOET-2754]
This commit is contained in:
committed by
Veljko V
parent
5c20c11ac9
commit
4ec53d2d52
@@ -22,3 +22,20 @@
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
// Html blocks contains iframe which captures clicks and in some cases prevents selecting block.
|
||||
// This adds an transparent overlay over the iframe.
|
||||
.mailpoet-html-block-editor-content-wrapper {
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
background: transparent;
|
||||
content: ' ';
|
||||
display: block;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ const CustomHtmlEdit = ({ attributes, setAttributes }) => {
|
||||
return (
|
||||
<ParagraphEdit>
|
||||
{inspectorControls}
|
||||
<div>
|
||||
<div className="mailpoet-html-block-editor-content-wrapper">
|
||||
<SandBox html={renderedContent} styles={styles} key={key} />
|
||||
</div>
|
||||
</ParagraphEdit>
|
||||
|
Reference in New Issue
Block a user