#703January 3, 2018by tlatforlz1 answer
Hi @artf , When I init GrapesJS, I use editor to set style and component when initialize. The GrapesJS show it. But I can't add block any more. Then I just remove style. I just set component. The GrapesJs is work. Then I set style and set component. I can't add block again. I think problem when I use editor set style....
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#701January 2, 2018by austinbiggs3 answers
What I'm trying to achieve: I have special "data-" attributes on some of the components I pull into the editor. When one of these is modified, I want to get the value of the "data-" attribute and the new content. I have code listening to when a component is modified. When this event fires, I'm checking the content (wo...
artf
Hi Austin, the reason behind your issue it's just because the built-in RTE works differently from a custom one (eg. CKEditor plugin) which just writes all changes inside content. https://github.com/artf/grapesjs/blob/dev/src/dom_components...
austinbiggs
I’ve been digging through more code and from what I can tell, this doesn’t happen in when using the CKEditor plugin (tested using the newsletter demo). However, when using the default RTE it does occur (tested on my own code and the websit...
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#700January 2, 2018by krunal0393 answers
we load content from db once editor page load and if use select undo after any changes it makes editor canvas blank. Is there way to solve it?
ryandeba
Hi @krunal039, You probably want to clear out the undo history right after populated your content from the db. editor.UndoManager.clear();
krunal039
@ryandeba I tried and now undo and redo button does not do anything(not even blank editor canvas) I have below code [{ id: "undo", className: "fa fa-undo icon-undo", command: function command(editor, sender) { sender.set("active", 0); edit...
ryandeba
@krunal039 Could you create a jsfiddle example that shows the issue? Calling editor.UndoManager.clear() shouldn't completely break the undo/redo functionality, so I suspect there is some other issue going on.
#699January 2, 2018by crazyxhz3 answers
If you resize the winow after grapesjs instance has been initialized. The hight light frame will be shifted:
artf
@crazyxhz are you sure you're using the latest version? (can't reproduce it with the current version)
crazyxhz
@artf I'm using this layout: left part and right part is fixed width while the middle part in which grapesjs is rendered is taking the rest of the space. Maybe it has something to do with this layout.
artf
Not sure, but, again, are you using the latest version?
#698January 2, 2018by alimajed933 answers
Hi everyone, I created a new component type, 'html-block', which is a component in which you can add your html code. I added an 'Edit' button to the toolbar, to enable the user editing the added html code. In order to show the html code of the component in the modal, I am using the function 'editor.getSelected().toHTM...
artf
Inside your html-block component create a new property (eg. custom-code) for user's code and retrieve it with editor.getSelected().get('custom-code')
alimajed93
This solved the problem for me. Thank you.
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#697January 2, 2018by vishal50333 answers
Hello, I want to drop external elements ( for example, tree view node) into blocks. Can you please help me out to show a way, how to achieve that? Thanks,
artf
@vishal5033 probably in the next release
artf
Hi @vishal5033 currently the canvas is not a droppable element but I've added HTML5 D&D support to the Rodmap (#74)
vishal5033
Hi @artf , Can you please share, when will HTML5 D&D available?. By the way thank you very much for such a wonderful project. Thanks
#696December 31, 2017by NHKK2 answers
Hello everyone, I'm new to all of this and I've been going through the documentation but I still dont understand how to bind click event. I have 2 files the first file is and second file is Does anyone have an example of binding?
artf
Hi @NHKK if your goal was to extend input component with some binded event you were almost there (you just need to use comps.addType)
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#695December 30, 2017by integrateddigital3 answers
Hi Art and All, I was wondering if anyone has used the new CSS specification layout CSS Grids; it works great, if display:grid is used including grid items under display:grid that are display:flex. The problem that I have is when using the import/edit plugin and adding a CSS Grid via display:grid, the editor accepts i...
artf
Hi @integrateddigital are you able to provide a live demo of your case because honestly, I didn't get how exactly properties are overridden
integrateddigital
Hi Art, Yes I would. I will create it and post back here.... txs.s On 2018-01-03 22:46, Artur Arseniev wrote: Hi @integrateddigital [1] are you able to provide a live demo of your case because honestly, I didn't get how exactly properties...
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#694December 29, 2017by nnnax2 answers
Hello, I've applied a CSS property on the wrapper as follow When I place my mouse on a component, the tools position are not correct and I'm not able to use the toolbar. After a small investigation, I think the issue is in CanvasView.js when the content is added to the wrapper, it should be interesting to check the zo...
artf
Hi Benjamin, thanks for the suggestion but currently I'm not interested in such functionality
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#693December 29, 2017by luiz-brasil2 answers
In the Asset Manager uploadName in request has a default suffix '[]' in his name. It shouldn't has a default suffix. If the user needs a fileName with suffix '[]', the user should add it.
artf
Hi Luiz, [] just stands for that uploadName is an array as you might need to upload multiple files
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.