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...
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
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!
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...
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.??
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.
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
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.