Issue #1693Opened December 30, 2018by renepardon0 reactions

[BUG|/QUESTION] Strange characters (Â) within CSS/HTML preview; Elements are not deleted completely

Question

BUG

  • Are you using the latest release (older versions are NOT supported)?

0.14.50

  • Are you facing the bug with your local copy of GrapesJS or with the current demo?

It's a local copy. The used verions (including plugins) are:

"dependencies": {
    "ckeditor": "^4.11.1",
    "grapesjs": "^0.14.50",
    "grapesjs-blocks-basic": "^0.1.8",
    "grapesjs-blocks-bootstrap4": "^0.1.3",
    "grapesjs-plugin-ckeditor": "0.0.9",
    "grapesjs-preset-webpage": "^0.1.10"
}

I'm working on MacOS and tested with latest Chrome: 70.0.3538.110 (Offizieller Build) (64-Bit)

  • What is the expected behavior?
  1. When deleting an element I expect all the related HTML being removed from the source preview as well
  2. There shouldn't be those strange (invisible) characters. Â This looks ugly and is not helpful
  3. The default viewport should be adjusted to "mobile" (mobile first) But the corresponding setting is not recognized
  • What happens instead? All elements were deleted but there is still an empty div-container in the viewport. There are strange charaters within CSS (and also the HTML preview). The default viewport width is 100% instead of the mobile one.
<img width="865" alt="bildschirmfoto 2018-12-30 um 09 58 19" src="https://user-images.githubusercontent.com/945323/50545744-13f53c80-0c1b-11e9-8a73-e11b6449dc4f.png">
  • If you're able to reproduce the bug indicate all the necessary steps Have a look to my full implementation here:

https://gist.github.com/renepardon/91db8b10a1dea1f8d0d855af945c89a8

I've installed all the packages with npm and copied the required files to the /vendor/grapejs folder

Answers (3)

artfJanuary 4, 20190 reactions

All elements were deleted but there is still an empty div-container in the viewport

You don't explain steps to reproduce this issue, but please check in Layers first. I'm pretty much sure you don't delete some kind of wrapper, which has no style so you just can't see it on the canvas

There are strange charaters within CSS (and also the HTML preview)

I can't reproduce it, also in the demo it's all ok. Try to update your files

The default viewport width is 100% instead of the mobile one

For the mobile-first approach check this https://github.com/artf/grapesjs/issues/900#issuecomment-369560034

artfJanuary 5, 20190 reactions

I can't reproduce it due to missing resources (and as I said, it's probably a problem with your files...)

    <link href="/vendor/grapejs/css/grapes.min.css" rel="stylesheet"/>
    <link href="/vendor/grapejs/grapesjs-preset-webpage.min.css" rel="stylesheet"/>

    <script src="/vendor/ckeditor/ckeditor.js"></script>

    <script src="/vendor/grapejs/grapes.min.js"></script>
    <script src="/vendor/grapejs/grapesjs-preset-webpage.min.js"></script>
    <script src="/vendor/grapejs/grapesjs-plugin-ckeditor.min.js"></script>
    <script src="/vendor/grapejs/grapesjs-blocks-bootstrap4.min.js"></script>

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.