Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on page break insertion #1

Closed
lebonsavane opened this issue Sep 21, 2020 · 8 comments
Closed

Bug on page break insertion #1

lebonsavane opened this issue Sep 21, 2020 · 8 comments

Comments

@lebonsavane
Copy link

Hi !
I have a problem with the plugin page break. When i insert a page-break he inserts nothing and he says that he didn't found a type page-break. Watch below:
image

@lebonsavane
Copy link
Author

@levonet ??? some solution to my issue ?

@levonet
Copy link
Owner

levonet commented Sep 23, 2020

@lebonsavane At first I thought that the plugins API had changed in newer versions of grapesjs.
I checked this, the plugin works with the latest version.

How can this problem be reproduced?

@lebonsavane
Copy link
Author

Hello,
@levonet it appaears when you just insert a page break for me, i use the latest version of grapesJs i think.
Thank you for helping

@levonet
Copy link
Owner

levonet commented Sep 24, 2020

Please show how you define the script in the <head> section.

@lebonsavane
Copy link
Author

lebonsavane commented Sep 24, 2020

No problem,
<script src="grapesjs-plugin-page-break\dist/grapesjs-page-break.min.js"></script>
@levonet

@levonet
Copy link
Owner

levonet commented Sep 24, 2020

Try this if the bundle is built from local files:

<script src="grapesjs-plugin-page-break/dist/grapesjs-page-break.min.js"></script>

Or try downloading the script from CDN:

<script src="https://unpkg.com/grapesjs-page-break@0.2.0/dist/grapesjs-page-break.min.js"></script>

@lebonsavane
Copy link
Author

i'll try thank you

@levonet levonet closed this as completed Sep 28, 2020
@davidecavestro
Copy link

davidecavestro commented Feb 11, 2021

Same issue here.
@lebonsavane did you solve it?
I'm loading the plugin from <script src="https://unpkg.com/grapesjs-page-break@0.2.0/dist/grapesjs-page-break.min.js"></script>.
The div is actually inserted into the html, but there's a warning in the console and I can see no visual representation of the page-break.
image

image

Unless there's something wrong with my test snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants