J
J
jonatanch2018-11-08 15:35:24
1C-Bitrix
jonatanch, 2018-11-08 15:35:24

Why does layout collapse in bitrix editing mode?

Hello, here is the code:

<div class="h1">
<? $APPLICATION->IncludeFile("include/h1.php", Array(), Array("MODE"=>"html")); ?>
</div>

<div class="description">
<? $APPLICATION->IncludeFile("include/description.php", Array(), Array("MODE"=>"html")); ?>
</div>

In edit mode, anywhere if you click 2 times, then editing the h1 file will open, in general, it occupies the entire page. (I can’t screenshot it, so I’ll draw it):
5be42d85a3bc9372328640.png
There is also a problem with inline blocks, when, for example, only a phone number is in the includes, it jumps to another line, and the layout breaks.
How to properly connect the embedded area so that nothing breaks?
Tell me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Petrov, 2018-11-08
@tamerline

you have an error in your code:

<div class="h1">
<? $APPLICATION->IncludeFile("include/h1.php", Array(), Array("MODE"=>"html")); ?>
</h1>

and Bitrix in edit mode additionally wraps div...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question