Hi @artf , it seems that in order to initialise an instance of the editor with an already existing CSS you can either give the editor "gjsstyles" or "gjscss". Similarly for HTML it's either "gjscomponents" or "gjshtml". What is the proper way? So far the way I've been doing this is to have this code run just before ru...
artf
Am I doing this right? Not really. You have to setup the remote storage
tomichal
Thanks @artf !
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.
Hello, we'd like to render third party controls. This is a general question and we wan't to know whether we are going into the right direction. To render the controls we are required to use a third party technology (Vue, React, or similar frameworks). Both of the frameworks have one common problem: they are lagging th...
artf
Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template As second question I'd like to know whether it is possible to hook onto events from the editor from...
HakuTheWolfSpirit
Hi, thanks for the answer.Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template The problem with Vue is that there is not really a method that allows me t...
artf
The problem with Vue is that there is not really a method that allows me to put a string in as parameter and get html as an output. I have asked this question on StackOverflow and hopefully I will get an answer in near time. yeah but you c...
Hi @artf! I'm working to adapt your content builder in our system using the latest release v.0.14.21. I have set up the following configuration of the StorageManager: storageManager: { type: 'remote', stepsBeforeSave: 1, autoload: true, autosave: false, urlStore: '/save', urlLoad: '/load', contentTypeJson: true }, Wit...
jvillena
Thanks a lot! It works like a charm! Great Job. We are going to work in different new plugins so we will include them as open source as well. I'll keep you inform.
artf
We're using fetch under the hood so check this out https://stackoverflow.com/questions/36669911/post-not-retrieving-data-from-javascripts-fetch and let me know
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.
We are saving the components to the MySQL database .So when we load the components we don't get updated value for example in asset manager the images present in it are 4 and we add one image and save it then whenever we edit the image we see only those 4 images even we have uploaded many images after that to asset man...
artf
Assets have nothing to do with components, you have to store them too. https://github.com/artf/grapesjs/wiki/Assets
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.
Hi @artf. At the first time before saving the template, When I make one element and clone it, the style is coming in the clonned element. That is running fine. But when I save the template using Ajax and Call the below code:- and then clone the elements, their styling does not applies to the cloned elements. If I comm...
artf
Follow the issue template and provide a live demo
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.
I'm having trouble getting a custom block+component to display its template HTML inside the grapes editor. Within the exported HTML, the markup and CSS is generated as expected. Within the editor though, the block doesn't leave behind any sort of UI (though it is dragging in successfully based on the exported html/css...
artf
Well with this this.attributes.template = ... you do nothing to the view so it's just empty. You have to update the model so the view reacts to the change. Eg.
jdodsoncollins
This custom component is an adaptation of https://github.com/artf/grapesjs-blocks-flexbox
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...
Hello, In my project I have replaced the AssetManager by my own. However, when I use the new manager to update a components background-image, the background-image shows up, but the new state isn't reflected in the panel. Basically my question is: how do I detect what property or attribute the user is editting? And how...
artf
First of all, I'd avoid applying the style on selected component editor.getSelected(), you should do it on opts.target as it might be different from the selected one editor.runCommand('open-assets', { target: someOtherComponet })how do I d...
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...
SalesFeed
@artf Thanks, I followed your suggestions, but I can not get it to work. opts.target does not have a addStyle method It also seems the editor is generating an extra id in the css, so there are duplicates. I have set avoidInlineStyle: true,...
hello @artf , thanks to you for the comment on #1188, i see in the code https://codepen.io/artf/full/MQpZPj/ uses the appendTo property to render a filtered collection of component in a div with id # block1 , is posible to render 2 different collections, 1 in block1 and another in block2, since the BlockManager only p...
artf
@ssabrewolf as you get it right, BlockManager points only to one single DOM element, so you can't create 2 different collections, but you can definitely move elements around with plain javascript. You should do it once the content is rende...
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.
I have custom component and it render below html, I want to update value of h4 tilte and other element on trait changed, but not sure how can I find h4 and other element in model (NOT in view) and change value via trait change. I have used below approach but does not want to access model via index. updateTitle : funct...