Fix edit inline of sections

This commit is contained in:
Laurent Destailleur 2019-08-15 18:12:40 +02:00
parent b5d72edebc
commit 3dedb2149a
2 changed files with 12 additions and 12 deletions

View File

@ -1,23 +1,23 @@
<!-- Enter here your HTML content. Add and if and tag contenteditable="true" if you want to use the inline editor for the content --> <!-- Enter here your HTML content. Add and if and tag contenteditable="true" if you want to use the inline editor for the content -->
<div id="div1" class="dolcontenteditable" style="text-align: center" contenteditable="true"> <section id="div1" class="dolcontenteditable" style="text-align: center" contenteditable="true">
<br> <br>
__(MyContainerTitle)__ __(MyContainerTitle)__
<br><br> <br><br>
</div> </section>
<div id="divmycompany" style="text-align: center" contenteditable="true"> <section id="divmycompany" style="text-align: center" contenteditable="true">
This is example of dynamic content to get the name of your company (see source of page to see code):<br> This is example of dynamic content to get the name of your company (see source of page to see code):<br>
</div> </section>
<h1 style="text-align: center" > <h1 style="text-align: center" >
<?php echo $mysoc->name; ?> <?php echo $mysoc->name; ?>
<br> <br>
</h1> </h1>
<div id="divmetadata" style="text-align: center" contenteditable="true"> <section id="divmetadata" style="text-align: center" contenteditable="true">
This is another example of dynamic content to get meta data of a container/page (see source of page to see code):<br> This is another example of dynamic content to get meta data of a container/page (see source of page to see code):<br>
</div> </section>
<div style="text-align: center"> <div style="text-align: center">
__(Title)__ : <?php echo $websitepage->title; ?><br> __(Title)__ : <?php echo $websitepage->title; ?><br>
__(Description)__ : <?php echo $websitepage->description; ?><br> __(Description)__ : <?php echo $websitepage->description; ?><br>
@ -27,18 +27,18 @@ __(DateCreation)__ : <?php echo dol_print_date($websitepage->date_creation, 'day
</div> </div>
<div id="divinclude" style="text-align: center" contenteditable="true"> <section id="divinclude" style="text-align: center" contenteditable="true">
__(AnotherContainer)__ __(AnotherContainer)__
</div> </section>
<div style="text-align: center"> <div style="text-align: center">
<?php includeContainer('alias_of_container_to_include'); ?> <?php includeContainer('alias_of_container_to_include'); ?>
</div> </div>
<div id="div5" style="text-align: center" contenteditable="true"> <section id="div5" style="text-align: center" contenteditable="true">
<br><br> <br><br>
__(YouCanEditHtmlSource)__ __(YouCanEditHtmlSource)__
<br><br> <br><br>
Page created by __WEBSITE_CREATE_BY__ Page created by __WEBSITE_CREATE_BY__
<br> <br>
</div> </section>

View File

@ -1,3 +1,3 @@
<!-- Enter here your HTML content. Add and if and tag contenteditable="true" if you want to use the inline editor for the content --> <!-- Enter here your HTML content. Add and if and tag contenteditable="true" if you want to use the inline editor for the content -->
<div id="myfirstdiv" contenteditable="true"> <section id="mysection1" contenteditable="true">
</div> </section>