GrapesJS Issues

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

211 issues found

🔍 feature
#2820June 10, 2020by Rubark1 answer
0 reactions

Dynamically attach CDN(external resources) to canvas head #grapesjs #attach #cdn #external #resources

Dear artf I'm trying to add feature to my application, for end user. It's a tool for - Dynamically adding CSS and JS CDN-s. Like in jsFiddle or Codepen, when we add external resources(css/js) CDN-s. That means, that after adding a link for js, or css, it will appear in Canvas iFrames head. Unfortunately I couldn't fin...

artf

You if need to save dynamic css/js inside the template you have to append them to the body (eg. editor.addComponents('<script src="...">..')) if you need them outside the template (which manages ONLY the body), like in the <head>, you can...

#2800May 25, 2020by meyerco3 answers
0 reactions

[Bug] when removing a tooltip its css is not removed

DescriptionThe bug is reproduced on the current demo Expected behavior When a tooltip is removed its css is removed What happens instead ? When a tooltip is removed its css is not removed Steps to reproduce on the demo Clear the canvas Drag a tooltip Remove the tooltipClick on Import button on top toolbar , the toolti...

artf

Yeah, I think you're right, probably replacing with might fix the issue, would you like to check and create a PR? :)

meyerco

@artf Maybe this code to keep the code generic ?

artf

@meyerco 😅 yeah sure, sorry, it was a copy-paste from my try

#2748April 30, 2020by jsychova3 answers
1 reactions

[FEATURE REQUEST][BUG] Slider doesn't work with a non-integer step value

Default StyleManager property "slider" doesn't work with a non-integer step value. GrapesJS version: 0.16.1 In many cases, it’s convenient to use a slider with a non-integer step value: seems that Grapesjs supports only integer and rounds non-integer values. Steps to reproduce: Add a property with type 'slider'

adamwpe

Ah, you mean the arrows - sorry, thought you meant in general that the slider doesn't work. Never noticed that - always use the slider order the mouse dragging over the arrows. I'll have a look at the view - not too sure where to start hah...

adamwpe

Oddly enough - this works for me (I know I'm creating the sector at the same time): Can you make a demo?

jsychova

Yes of course. I've created a sample with your snippet, but seems that it doesn't want to work with me. https://codepen.io/sjul66/pen/VwvMwNY Thanks!

#2701April 5, 2020by lewishealeyNo answers
0 reactions

Define srcSet or picture with multiple images from asset manager

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

#2666March 19, 2020by siddisking2 answers
0 reactions

Adding trait makes element uneditable

Hi, I wanted to add a trait that enables me to edit the heading tag of a component. I was able to achieve that by following below code I found the solution on this issue But it does not allow the component to be edited when it is double-clicked. How to enable the editing of the heading component like the text componen...

artf

Your component should extend the text one

amitbhoj777

I want add multiple addType text, but I am facing an issue the last one which i added it will take only.??

#2645March 13, 2020by Rasazna2 answers
2 reactions

how to add new content to the intended component without removing the previously added component content

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

pouyamiralayi

append

Rasazna

I want to add data to the div component without removing the previosuly added data using the trait manager option is there a way to do it. Can some one help m e with a sample code for this.

#2616March 3, 2020by Rasazna2 answers
4 reactions

how to use editor.getSelected().append(`<div>...`);

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

pouyamiralayi

@Rasazna in below example, i am using it inside a `selected` event, so when ever you click on an item, your changes apply! Cheers!

Rasazna

i did not understand how to use editor.getSelected().append(<div>...); feature . can someone give an example for it

#2613March 2, 2020by Rasazna3 answers
0 reactions

Dragging blocks into another block

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

Rasazna

I am using gridly and high charts as two different blocks. I will drag the gridly block first and drag the the chart into the gridly block. How can this be done. I am only able to place the chart around the gridly block. But I want it insi...

artf

Please read the documentation first, seems like you have no idea how Components work...

Rasazna

can you just help me how to do it . I still could not figure it out. A sample code would be really helpful.