mjawad096 / laravel-grapesjs

This package provide an esay way to integrate GrapesJS into your laravel proejct.
MIT License
107 stars 54 forks source link

How to store the html without the body tag #72

Closed fuadkm closed 1 year ago

fuadkm commented 1 year ago

I'm trying to implement page builder for content section only. How can i remove the body tag from the editor? Prevent the wrapper from the html part while saving the data.

ghost commented 1 year ago

@fuadkm the body tag is not saved in the database it is only for display in the editor.

fuadkm commented 1 year ago

@jd-dotlogics But, when i save the body tag is getting saved in the database. Please see my implementation & output below.

<div id="main-content">
    <div id="main-page-content">

        {!! $folio->html !!}

    </div>

This is what i get

<div id="main-content">
    <div id="main-page-content">
     <body>
          <div id="ife2" class="light-section-wrapper">