#2430November 27, 2019by Indhumathi20161 answer
Hi, I can't able to track cmd + z pressed in anywhere since i want to perform some actions when undoing changes, i have acheived that with undo manager when i click on undo button but i can't do with cmd + z, is there any way to do this? Or i just want to restrict the ctrl + z option since have undo button in editor i...
artf
You can track undo/redo events and managing shortcuts (eg. in your case, removing default one) with Keymaps API
#2428November 25, 2019by aarangara1 answer
I am trying to load grapesjs editor in a simple html file and it does not load the grapesjs own icons or the fontawesome icons. Now, I looked into these 2 issues #2320 and #1474 but they did not help me in resolving my problem, hence I am raising it. Below is my source script (demo.js) which is then used by webpack to...
artf
i.e. the html file is at /public/editor/demo.html and the files output by webpack are located as /public/js/ (bundle.js and font files) - so if I copy font files to /public/editor/fonts/ it works fine. Well I think from this sentence is qu...
#2427November 25, 2019by senchden1 answer
If a selected model toolbar is being changed dynamically (adding a button, removing a button, etc.), the change is not being reflected visually unless the whole component is being redrawn. I think it would be nice to have a capability to see the change in toolbar property being rendered visually (automatic or manual).
artf
Closing this as the update of the toolbar is already in place
#2426November 25, 2019by Hovius2 answers
Hello @artf , I have a question about the grapes editor that I can not find in the documentation, so I hope you have an answer. Basic setup: The configuration of all components is set with the init this.editor = grapesjs.init(defaultConfiguration); The components from an earlier saved json are added with setComponents...
artf
Can the editor pick up on the new component config without having to add a new component to the canvas manually? Not really, if you store the component definition in one way, the editor will load that definition. One only thing I can sugge...
Hovius
Thanks for your response! I'm going to use avoidDefaults: true and make it work :)
#2425November 25, 2019by Ramkumar-Murugesan1 answer
I added more traits from the default input traits. but that traits are not saving in the grapesjs JSON metadata. the above is my storage configuration in grapesjs init function. the above image shows that I have custom traits called entity and its field after I saved and come back that those traits are not shown even...
artf
I added more traits from the default input traits. but that traits are not saving in the grapesjs JSON metadata Traits shouldn't be stored, are not extensions of your Components but just a way to update your Components' props/attributes. T...
#2424November 25, 2019by logeshkrishna03 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...
logeshkrishna0
@artf that is not the excepted solution
logeshkrishna0
As normal behaviour while we use ENTER key it use form div tag inside the p tag which is normal one. The above image shows that...... But!!!! here is want to get P tag instead of div tag and also the present p tag should be closed.. The ex...
logeshkrishna0
@artf could you please help me out with this
#2423November 23, 2019by MartinPutz2 answers
Components are not dropped to the exact position if dragmode set to absolute and there is a zoom value applied on the canvas. GrapesJS version:0.15.8 The issue can be reproduced in the demo as well: https://jsfiddle.net/y8m1x4a3/ Expected behavior: Components can be dropped to the cursor position even if the dragmode...
artf
Should be fixed in this branch https://github.com/artf/grapesjs/tree/multi-frame Multi framing is still far from being complete but I hope to merge soon that branch (big canvas refactoring but without breaking changes), definitely not for...
artf
I close this issue as I'm planning to solve all ones related to absolute positioning here: https://github.com/artf/grapesjs/issues/3770
#2422November 23, 2019by MartinPutz3 answers
Cannot edit text components properly if a zoom value is applied on the canvas. GrapesJS version:0.15.8 The issue can be reproduced in the demo as well: https://jsfiddle.net/1n9ruwa4/ Expected behavior: Zoom is applied on canvas using:editor.Canvas.setZoom() The text components can be still edited and 'space'(Keycode:3...
mattdeigh
Ahhh, I see it now. Wasn't tracking with the code completely. I'll play around with that and let you know what I come up with.
Sphenox
I'm writing on this issue, since you can't add a 'space', if you are focused on an <a> or a <button>. It is reproducable in the demo, if you add a Link: https://jsfiddle.net/1n9ruwa4/ Reason is because of the notTextable config from the ca...
artf
Thanks @MartinPutz good catch
#2421November 20, 2019by brentonkelly19822 answers
Working Example: https://codepen.io/brenton-kelly/pen/wvvOgLN On the latest versions: https://unpkg.com/grapesjs https://unpkg.com/grapesjs/dist/css/grapes.min.css I created a grid component where the user will set the number of columns and the gutter via trait manager. When I use the "number" type for the traits, my...
artf
You forgot changeProp: 1 in your traits
brentonkelly1982
Thank you!
#2420November 20, 2019by prestonkscottNo answers
I'm seeing this issue locally and on the GrapesJS demo when using Internet Explorer. If you drag a block over the canvas and attempt to cancel the drag by either dragging the block back to the starting container, or by pressing escape, a new component is still added to the canvas and the canvas highlighting and toolba...