grapesjs | Next generation tool | Content Management System library

 by   artf TypeScript Version: 0.16.34 License: BSD-3-Clause

kandi X-RAY | grapesjs Summary

kandi X-RAY | grapesjs Summary

grapesjs is a TypeScript library typically used in Web Site, Content Management System applications. grapesjs has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

GrapesJS is a free and open source Web Builder Framework which helps building HTML templates, faster and easily, to be delivered in sites, newsletters or mobile apps. Mainly, GrapesJS was designed to be used inside a CMS to speed up the creation of dynamic templates. To better understand this concept check the image below. Generally any 'template system', that you'd find in various applications like CMS, is composed by the structure (HTML), style (CSS) and variables, which are then replaced with other templates and contents on server-side and rendered on client. This demos show examples of what is possible to achieve: Webpage Demo - Newsletter Demo -
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              grapesjs has a medium active ecosystem.
              It has 17268 star(s) with 3291 fork(s). There are 464 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 71 open issues and 3400 have been closed. On average issues are closed in 92 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of grapesjs is 0.16.34

            kandi-Quality Quality

              grapesjs has 0 bugs and 0 code smells.

            kandi-Security Security

              grapesjs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              grapesjs code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              grapesjs is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              grapesjs releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 2856 lines of code, 0 functions and 356 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed grapesjs and discovered the below as its top functions. This is intended to give you an instant insight into grapesjs implemented functionality, and help decide if they suit your requirements.
            • Starts an element .
            • Initializes the input element .
            • Dragging returns an element .
            • Updates the UI background color
            • Attempts to convert a color string into an array of strings
            • Generate API docs documentation
            • Dispatch a keydown event .
            • Convert RGB values to RGB values .
            • Generate a palette template .
            • Update the drag helpers
            Get all kandi verified functions for this library.

            grapesjs Key Features

            No Key Features are available at this moment for grapesjs.

            grapesjs Examples and Code Snippets

            How do I import 3rd party libraries in NextJS?
            JavaScriptdot img1Lines of Code : 22dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            // components/my-awesome.component.js
            // import the library that use `window` object
            import grapesjs from 'grapesjs';
            
            export default function MyAwesomeComponent() {
              // Initialize your component or do whatever you need to do
              ...
            }
            
            How to add an option for js code in grapesjs?
            JavaScriptdot img2Lines of Code : 5dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            const editor = grapesjs.init({
                ... // the rest of your grapesjs config
                allowScripts: 1,
            });
            

            Community Discussions

            QUESTION

            Get data using useeffect hook in react js
            Asked 2022-Mar-31 at 22:14

            I have a simple page editor, When a user clicks edit page it opens an editor. I am passing the ID of the page using redux which will be used to get data from API.

            Here is my Editor.

            ...

            ANSWER

            Answered 2022-Mar-31 at 22:14

            Even if you await your getPage call, the updated pageData won't be available until the next render cycle so your assignment to LandingPage will be one cycle behind.

            You should instead update in one useEffect and watch for changes to pageData in another.

            Source https://stackoverflow.com/questions/71699604

            QUESTION

            Is there a way to remove the "Add Image" button of AssetManager of grapesjs editor in a vue component
            Asked 2022-Mar-25 at 10:35

            I want to remove the Add Image button and its textbox. Is there a way to do it, by setting the configuration of assetManager or by some other way ?

            ...

            ANSWER

            Answered 2022-Mar-25 at 10:35

            I have hidden the "Add Image" button and its path URL textbox using css styling.

            Source https://stackoverflow.com/questions/71601322

            QUESTION

            How to render HTML from database in react?
            Asked 2022-Feb-03 at 05:08

            I am working on making custom webpages with the help of Grapesjs. I want to render the html page in react js which has been been saved by the grapesjs editor in the database. Following is the format in which the data is being saved.

            Right now I just able to get the html code in the inspect window, but how can i render it on the page?

            ...

            ANSWER

            Answered 2022-Feb-03 at 04:54

            QUESTION

            Making UI Components Selectable in ReactJS
            Asked 2022-Jan-31 at 17:08

            Let's say I have a few UI Components in React JS, which render some HTML on screen, like below:

            ...

            ANSWER

            Answered 2022-Jan-31 at 16:16

            There are three parts to this solution:

            1. Stateful class values
            2. Displaying the tree
            3. Binding the stateful class values to inputs

            (1) Using functional components with React hooks, you can initialize a variable for each default class name with the useState hook as follows:

            Source https://stackoverflow.com/questions/70927089

            QUESTION

            Integrate Splidejs into Grapesjs: failing instanceof HTMLElement
            Asked 2022-Jan-13 at 12:46

            I am trying to integrate Splidejs into a Grapesjs editor. When mounting splides, I get the Uncaught Error: [splide] A track/list element is missing.

            After debugging, I realise that Splide does not find the required track or list HTML Element for mounting properly. However, they are present in the HTML of the Grapes component.

            ...

            ANSWER

            Answered 2022-Jan-13 at 12:46

            I have also reported the issue on grapesjs' github https://github.com/artf/grapesjs/discussions/4062

            and added two workarounds

            1. patching splidejs as follows (did not submit a PR). This allowed splidejs to be properly loaded by the script of my new component type.

            as in

            Source https://stackoverflow.com/questions/70637678

            QUESTION

            ReferenceError: Cannot access 'dtime' before initialization
            Asked 2021-Oct-28 at 09:52

            working in grapesjs in component in js

            ...

            ANSWER

            Answered 2021-Oct-28 at 09:52

            can't access dtime before initialization

            Source https://stackoverflow.com/questions/69750459

            QUESTION

            Is there a way to send params inside params in ajax call (vanillaJS)
            Asked 2021-Apr-07 at 12:59

            The context

            I'm building a save/load system for an email template builder based on grapesjs-mjml. I'm saving my MJML code in a BDD (MySQL).

            My current code

            I'm sending my template name and my template MJML code through an ajax call which look like that

            ...

            ANSWER

            Answered 2021-Apr-07 at 12:59

            You should use encodeURIComponent(). This will properly encode special characters.

            Source https://stackoverflow.com/questions/66986532

            QUESTION

            How to Save a page assembled using GrapeJS to a database using ASP.NET MVC
            Asked 2020-Nov-20 at 11:29

            Well, I am developing my own Content Management System using ASP.NET MVC and for a page builder I've decided to use GrapeJS. Now, since this is new to me, I can't seem to find a way to save the pages I would have assembled using GrapeJS. I have used the gjs-preset-webpage GrapeJS plugin and the only JavaScript for the assembling area I have is as shown below:

            ...

            ANSWER

            Answered 2020-Nov-20 at 11:29

            You need a endpoint to allow grapes' storage manager to send your site current status information. I save the json and html just in case, but I think json is enough. Well then you setup your storage manager.

            Source https://stackoverflow.com/questions/64798432

            QUESTION

            Inline CKEditor not working in some HTML tags
            Asked 2020-Oct-15 at 04:53

            CKEditor Inline standard-all version works only with few HTML tags line

            ,

            ,

            -. This inline editor not popping up for elements like strong, i, span, etc.

            I am using this inline editor inside grapesJS editor.

            Here is JSFiddle where you can check the working & code.

            Version:

            grapesjs - 0.16.18

            ckeditor - standard-all - 4.14.1

            Can we able to fix this issue by using format_tags: "span;strong". Is there any other ways to fix this issue. Please let me know if any.

            ...

            ANSWER

            Answered 2020-Oct-14 at 13:54

            I got its solution as below:

            Source https://stackoverflow.com/questions/64347477

            QUESTION

            Inline CKeditor integrated in GrapesJS editor
            Asked 2020-Sep-25 at 07:50

            I'm working in an editor application where GrapesJS is implemented. Its editor and feature are working fine. I have integrated inline CKeditor to GrapesJS editor and it has few issues.

            1. Multiple inline edit options are showing
            2. Sometimes the editor options are not positioned properly
            3. Main issue: Inline options are showing but it's not reflecting in the selected text. I mean we can click those inline options to format the editor contents but it is not reflected in the editor.

            Here I'm sharing few codes written:

            ...

            ANSWER

            Answered 2020-Sep-25 at 07:50

            As you see I do not get any response from SO. I have also reported this issue in Github where I have seen responses of similar issues. After a few days, I got a response & that worked fine for me. So I wish to share that response with you all, which might be helpful for someone else like me.

            My first issue: Multiple inline edit options are showing

            The GrapesJS CKEditor plugin already registers CKEditor as a custom RTE, so calling editor.setCustomRte is actually setting it up twice.

            I have removed the editor.setCustomRte block & it worked fine. If you want to provide CKEditor options, this should be done at the pluginsOpts level as shown here.

            Here is my second issue: Sometimes the editor options are not positioned properly

            This was also fixed after removing the editor.setCustomRte block.

            And, the last & main issue I faced while integration: Inline formatting not reflecting in the selected text

            The GrapesJS CKEditor plugin is dependent on the Standard-All CKEditor version, not using the Standard CKEditor version. Use https://cdn.ckeditor.com/4.14.1/standard-all/ckeditor.js it will fix.

            Here is a working fiddle which you can refer for Inline CKEditor integration with GrapesJS

            An extra note: I have faced another issue after removing editor.setCustomRte block - which was the fix of my first issue. It looks like:

            Source https://stackoverflow.com/questions/63499261

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install grapesjs

            For the development purpose you should follow instructions below.
            CDNs UNPKG (resolves to the latest version) https://unpkg.com/grapesjs https://unpkg.com/grapesjs/dist/css/grapes.min.css CDNJS (replace X.X.X with the current version) https://cdnjs.cloudflare.com/ajax/libs/grapesjs/X.X.X/grapes.min.js https://cdnjs.cloudflare.com/ajax/libs/grapesjs/X.X.X/css/grapes.min.css
            NPM npm i grapesjs
            GIT git clone https://github.com/artf/grapesjs.git

            Support

            Check the getting started guide here: Documentation.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/artf/grapesjs.git

          • CLI

            gh repo clone artf/grapesjs

          • sshUrl

            git@github.com:artf/grapesjs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Content Management System Libraries

            Try Top Libraries by artf

            grapesjs-mjml

            by artfTypeScript

            cimice

            by artfJavaScript

            grapesjs-preset-webpage

            by artfTypeScript

            grapick

            by artfJavaScript