#2845June 20, 2020by BerkeAras3 answers
Hello, what about a drag-and-drop for images into image-elements? Like this:
artf
I think you can accomplish that by extending the default image component. As the user is already able to drop images in the canvas by using the HTML5 D&D I would skip such a feature from the core component.
revdfdev
Is there any example to extend an image component
#2820June 10, 2020by Rubark1 answer
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
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
#2775May 14, 2020by motazad1 answer
How can I use βββ'min-width' and 'max-width' in the config.mediaCondition? I'm going to split the changes between the sizes of the devices
artf
https://github.com/artf/grapesjs/issues/2752#issuecomment-630137698
#2748April 30, 2020by jsychova3 answers
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
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
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
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 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.
#2642March 12, 2020by jorisrosNo answers
Add the dutch language to the project.
#2616March 3, 2020by Rasazna2 answers
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