#1529October 19, 2018by krunal0393 answers
I have custom component and have applied editable=true but child element are not editable, I even tried adding data-gjs-editable=true and also try to use basic component blocks but entire component is not editable. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView...
artf
traits are not visible when clicked on component. Because you're clicking another component (the inner one, which has its own traits), if you don't need that component to be selectable you can use selectable property <div data-gjs-selectab...
artf
You should put the HTML not inside content(in the block definition) but components
krunal039
@artf I have put inside components and if I do that way than traits are not visible when clicked on component. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView) { var defaultType = co...
#1528October 18, 2018by nine-2-five2 answers
I'm using the following code for my custom block, and it works when the block is dropped on the canvas. But when the block is loaded from localStorage, it only creates a div wrapper and doesn't execute the content.script part of custom block.<br> I tried simplifying the script property to just alert or console call bu...
nine-2-five
False alarm, sorry. I checked the grapesjs-preset-webpage, and realized I was registering the block but no component. Once I added the component to editor.DomComponents, it started rendering the carousel even when loaded from localStorage.
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.
#1527October 18, 2018by Deepak8133 answers
Hello @artf, How can we add any changes/events in undo/redo Manager like when we drag element like navigation or countdown. Hope for positive response Thanks in advance
artf
Duplicate of #1512 @Deepak813 more issues you open, later you get the response... so please avoid generating useless noise
Deepak813
Hello @artf, My bad.I forgot that i have already opened this issue. I'll not repeat this thing. Thankyou
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.
#1526October 18, 2018by gasserol3 answers
Hi, unfortunately I do not find documentation and can't manage to get it understand from code: I know there is a built-in command 'fullscreen', but with my configuration (from tutorial) it does load only canvas in fullscreen, no panels. Here is my html code: and here my panel code: Can somebody put me on the right way...
electrotype
@nativeer I had the same problem. My workaround is to call stopCommand before runCommand: Seems to work for me.
artf
Good point, the default Fullscreen command enables the fullscreen on the container (#gjs) but with external panels this obviosly doesn't work, and this is why you see only the canvas. I'd really appreciate a PR for a new option which would...
gabjdev
Hi @artf , Above code worked for full screen, but after I exit full screen manually, it doesn't work anymore. Could you post code to exit full screen with same button?
#1525October 18, 2018by himanshubudhlakoti2 answers
Hello All, I am using Forms block in grapejs and using grapesjs with angular 6. but i am not getting that how can i get data from forms while clicking on submit button of form. i am using following code for forms as displaying in above snapshot i have filled form and now when i click on send button forms data should b...
artf
In the editor you just specify the action of the form, the rest has nothing to do with it (you have to deal with some server endpoint)
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.
#1524October 17, 2018by gasserol2 answers
Hello all, it turns me crazy but I do not understand how to add blocks. I can write them myself following tutorial, but when I load plugin, like grapesjs-block-basic for example, blocks don't show. Here is my code: Can somebody explain me what I'm missing? I think that loading grapesjs-blocks-basic.min.js should make...
gasserol
found the problem, was loading wrong js file.. sorry.
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.
#1523October 17, 2018by himanshubudhlakoti3 answers
Hello All, please let me know is there any plugins for adding shapes like Line, Rectangle oval at blockmanager
himanshubudhlakoti
please let me know its urgent
v8jupiter
I have not seen such a plugin. But you can create you own, it not hard
#1522October 16, 2018by SeongwoonHong2 answers
I'd like to have a button that is outside the editor and if i click this button, some text should be generated in the body where my cursor is currently. I've tried to find but couldn't find a solution for this..
artf
https://github.com/artf/grapesjs/issues/111#issuecomment-310059057
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.
#1521October 16, 2018by Controlhaus3 answers
Are any examples of using Aws S3 to store asset files available?
Controlhaus
To upload to S3 direct from the browser, a pre-signed URL needs to be obtained from the app's server first. The URL needs to contain the file's name. Is it possible to assign the asset manager's upload URL in the before upload event? This...
artf
Check this PR https://github.com/artf/grapesjs/pull/1430 To update the config of the upload url: editor.AssetManager.getConfig().upload = 'asdasd'
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.
#1520October 16, 2018by krunal0393 answers
Get below error for this.components() not sure if it is bug or I am doing something wrong. Uncaught TypeError: Cannot read property 'each' of undefined at R.i.countChildren (grapes.min.js:formatted:16228) at R.i.template (grapes.min.js:formatted:16093) at R.i.render (grapes.min.js:formatted:16248) at R.i.addToCollecti...
krunal039
@artf can you please let me know what am I doing wrong here?
artf
@krunal039 follow the issue template please
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.