GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

πŸ” outdated
#413Oct 12, 2017by FrikkieSnyman3 answers
0 reactions

Use trait to modify component class

Hi! I'm trying to change the value of the classes with very little succes. Here is my custom trait's onValueChange function: Which results in an HTML output of: Obviously, this isn't legal HTML. It also produces weird results when adding or removing a class in the Classes input. What is the correct way to go about thi...

FrikkieSnyman

@artf Is this even possible?

FrikkieSnyman

So I got this figured out, in a quite hacky way, but it works! Just create a custom trait, and use the following for the onValueChange()

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#412Oct 12, 2017by ramkumar653 answers
0 reactions

Controls drag and drop not working

Hi, Grapes js html template designer is perfect, but the demo page controls drag and drop incorrectly placed to page. please help me......:)

artf

Seems to work fine on my side, provide a screencast of the issue, please

ramkumar65

here i attach screenshot. reply soon as possible. Thanks for reply

artf

You should drop inputs/labels only inside form

#411Oct 12, 2017by bayareawebpro1 answer
0 reactions

Asset Editor, Error on Remove

TypeError: null is not an object (evaluating 't.parentNode.removeChild') in remove: function()...

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#410Oct 12, 2017by mohammad-aqajani2 answers
0 reactions

Example on video component

is there any example for adding video component the same way as adding images which have uploading dialog ?? any code would be appreciated! <div controls="" src="http://127.0.0.1:8000/media/PyQt4PythonGUI6FileBrowseButtonH9wtiVE.mp4" onmousedown="return false" class="gjs-comp-selected" style="height:607px;"> <video cl...

artf

No, but you can create a new Component by following this https://github.com/artf/grapesjs/wiki/Components and #286

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#409Oct 12, 2017by nhinq3 answers
0 reactions

Can't loaded in storageManager of 0.12

Im using type: 'remote', but it can't loaded to canvas

mekamleshk

@nhinq you can refer to my code Here I was able to upload and retrieve files.

artf

follow the issue posted by Kamlesh

nhinq

Ok Thank you - will try it

#408Oct 12, 2017by dong-dev2 answers
1 reactions

How to update toolbar of component?

Hi Artf, i was added new command to editable component, update style work well but i don't know how to update this toolbar after component updated (update align icon for example), do you have any suggetion? defaultCommands['testCommand'] = { run(ed) { var sel = ed.getSelected(); var styles = sel.get('style'); var tbs...

artf

You can set a listener on component update Be aware that with var styles = sel.get('style') you get the style of the component and not what is selected in Style Manager (if the component has classes, the css rule will be selected)

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#407Oct 11, 2017by ateshuseyin3 answers
0 reactions

Defining new markup language

Hi @artf, I want to define a new markup language like mjml to make design more easy and readable. I started with <error>tag as a POC. Write code below; model: import Component from 'grapesjs/src/domcomponents/model/Component'; const ComponentError = Component.extend({ defaults: { type: 'error', tagName: 'error', ...Co...

gasserol

Did you see that there is a preset from the author of this project for mjml, maybe this helps you? https://github.com/artf/grapesjs-mjml

ateshuseyin

Thanks @gasserol. I saw but I could not find the problem.

ateshuseyin

Now works on drop :) But still cannot parse from element.

#405Oct 11, 2017by NicholasGati3 answers
0 reactions

Can't drag list item inside of unordered list

Ciao, spero che stai bene e grazie per GrapesJS! I am trying to create a way for users to create multiple choice questions. The first block below is the section that has a form with an unordered list inside of it. The unordered-list inside of the form should be able to accept a list item, which is another block in its...

artf

Hi @NicholasGati I think it might be an issue with data-gjs-stylable="false" can you try to remove it from <ul> and <li> and check if it works

NicholasGati

Hey @artf, thanks for replying. I removed data-gjs-stylable="false" and it still does not work. I get the same error: 'Target collection not found, Target is not droppable...'.

artf

Are you able to reproduce it by using something like jsfiddle/codesandbox?

#403Oct 10, 2017by danfitz363 answers
0 reactions

Incorporate juice inliner (or similar) to inline css for html email creation

the demo shows a newsletter, but I don't think the css gets inlined, which is really needed for better email support. https://github.com/Automattic/juice

artf

Actually it does

danfitz36

oh that's great, thanks. i didn't get that far in the demo i guess.

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#402Oct 10, 2017by danfitz362 answers
0 reactions

What will it take to move to v1?

are there specific features needed, some amount of testing required? what specifically needs to happen and how can we help to make it happen?

artf

Good question. Didn't think too much about it, probably I'd say a more stable API, make the core dry as possible (less opinionated stuff) and probably have to complete some feature from the current Roadmap.

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Browse all topics