#2556February 8, 2020by MatthewMariner2 answers
Use Case: Hey guys, I looked through the UndoManager API/Searched for issues - but I am unable to figure out how to limit the UndoManager. If I create a robust website and spend 30 minutes making it, it looks like I can ctrl + z all the way back to start. I'm thinking this could possibly slow down the Editor since it...
MatthewMariner
Thank you @artf
#2555February 7, 2020by mario-digital1 answer
Hello, Ive added vue-slider to my project and I am trying to set the min and max range on the sliders to go -100 to 100. However when I set them I get: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based...
artf
Dude, this is Vue related question... btw, you just need to pass them in vue function render
#2554February 7, 2020by irfanhaider51 answer
Hi , I want to make dynamic component using table with dynamic data.And want to render generated html in react component.Will you please help me out how can I do that I didn’t find any thing that help me out.I m stuck.
artf
You need to create a custom component and you could load the dynamic data in onRender callback function
#2553February 6, 2020by sdrebel1 answer
Hi @artf, In absolute dragmode, not able to drag and drop other components inside the selected component. This issue is not for custom component, tried with basic column component. Let me know if any work around is there Demo is here https://jsfiddle.net/fn43hpj1/2/ Thank You.
artf
At the moment the absolute dragmode doesn't work in that way, all the dropped blocks go directly in the root
#2552February 6, 2020by kickbk2 answers
Sorry for the newbie question, but say I have a text field component and I only want to allow the user to drop a specific number of them into the canvas, say just one. How do I limit it? Perhaps a way that shows an alert to explain they cannot add another text field component to the canvas unless they remove the exist...
pouyamiralayi
#25151 #25152
kickbk
So I have a very ugly solution right now: This basically looks whether the component is in the canvas on load. If it is then it hides the draggable component button - Here I could use a better way to hide the button - how? I can get to the...
#2551February 5, 2020by gagan3481 answer
I have created link toolbar in richtexteditor and want to select link component (dynamically added) in else statement after insertHTML. It is not created as a component until I click on canvas. Is there any method to achieve it? Here is the following code: editor.RichTextEditor.add('link', { icon: '<i class="fa fa-lin...
gagan348
I found the method which works for me 👍 editor.getSelected().view.syncContent(); Thanks
#2550February 5, 2020by ganapathy-kevin1 answer
Is there an event listener I can use to fire a function as the user is typing each letter into a Grapejs field? I'm looking to save to a remote database as the user is typing each letter. Currently I can only fire a function on blur, or if the user presses a custom button.
artf
if you use blur you can probably use input(triggers on any input change) too
#2549February 4, 2020by rjrodriguezalvarez973 answers
Hi everyone, I'm trying to create a component that will update it's view based on a property value My approach is bassed on #1227 and on the docs In my use case I don't need the trait, I can just update the property programmatically. But this won't work and will not display any component on the canvas even though they...
artf
to update the HTML you have to change toHTML in the model
artf
Did you try something like this?
rjrodriguezalvarez97
I’ll give it a try the day after tomorrow. Thanks for your quick replies!
#2548February 4, 2020by christiancannata3 answers
When zoom is enabled is not possible to scroll over all canvas and move components. I think that is transform: scale(1.5) translate(0px); property on canvas the origin of the problem. If I enable an overflow: scroll property outside the canvas, I can move only for a partial canvas, but not on all canvas size. <img wid...
artf
Hi @christiancannata when you enable the zoom you should be able to pan the canvas by pressing SPACE and left mouse click
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
mmotov
Hi @artf! That was really helpful, but how can I set canvas's original position when I zoomed back to normal state?
#2547February 4, 2020by sdrebel3 answers
Hi @artf , If any component CSS has bottom or right values , not able to drag them. Values are generating as NaN. Attached the screenshot for your reference.
artf
Can you create a reproducible demo?
sdrebel
Can you create a reproducible demo? Hi @artf Demo link is here https://jsfiddle.net/fn43hpj1/2/ You can check the 'Popup' component. Since in Draggable mode style gets overridden, I'm getting the style and update onRender method.
artf
Since in Draggable mode style gets overridden, I'm getting the style and update onRender method. Yeah, that will be fixed in the next release, I'll check later with your example