#1117May 16, 2018by UmairAfzalUAT3 answers
Hi Artf Actually there is no issue. we are using grapesjs in a different way. We are not using header and sidebars of grapesjs we are performing its functionalities buy our own triggers like undo redo preview etc. Is there any way i can add my own component panel having headings, images, Gallery, Videos, Vectors, Shap...
UmairAfzalUAT
I am working on relative and absolute both will let you know when done.
artf
Hi Umar, GrapesJS supports native HTML5 Drag&Drop, therefore you are able to drop ANY kind of draggable resources (not only from the browser) You can also extend it's capabilities by using canvas:* events, like canvas:dragdata which allows...
UmairAfzalUAT
Hi Artf, Thanks for help i got that and using drag and drop in the same way. you have done the great job (Y). BTW what about designer mode is that available?
#1116May 15, 2018by perfect-coders3 answers
Hi @artf. I have used the GrapesJS Style Gradient plugin and do the same as it is suggested. But it is not making the gradient in the settings. I am giving like that { name: 'Gradient', property: 'background-image', type: 'gradient', defaults: 'none' } Also When I added the "artf/grapesjs-style-gradient" plugin throug...
artf
Plugin gjs-style-gradient not found Are you sure you've imported it correctly?
perfect-coders
This is how the gradient property is coming. And this is how I am doing / Page Settings / { name : 'Page Settings', open : true, buildProps : ['background-color','background','background-repeat','background-size','background-position', 'ba...
artf
Your fiddle doesn't work (you didn't setup it correctly), btw this is the demo, it uses the latest version and it works as expected
#1115May 15, 2018by Lethrir2 answers
I am using the core:canvas-clear command assigned to a button but when this is pressed, the styles setup through the CSS Composer are also being removed. Grape Version: 0.14.15 Browser: Chrome 66.0.3359.139 (Official Build) (64-bit) I have setup a script to recreate this at https://jsfiddle.net/pzacf7zg/ Reproduction...
artf
Hi @Lethrir as you can see this is the command and the behavour is totally intended. This also shows you how ridiculously the command is, so you can create your own via Commands API I'd also suggest to create blocks with their own styles,...
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.
#1114May 15, 2018by Lethrir2 answers
I am using the toHtml and isComponent properties for a custom component to allow for custom HTML output. This appears to be working when the element is first dropped on the canvas but when the page is refreshed the element is present but does not return the custom HTML. Grape Version: 0.14.15 Browser: Chrome 66.0.3359...
artf
You should put your custom components in a plugin and it will work
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.
#1113May 14, 2018by trinhbalinh3 answers
Hello, thanks for the great framework. I'm trying to apply this to my project. I want to add a new trait for existing LINK '<a>' component. I follow these documents and almost got what I expected: https://github.com/artf/grapesjs/wiki/Traits#define-new-trait-type and: https://github.com/artf/grapesjs/wiki/Components#u...
artf
Just include your changes in a plugin https://jsfiddle.net/on1g5xqb/
trinhbalinh
Thank you, it worked!
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.
#1112May 14, 2018by IceCrystal0k2 answers
Hello, is there a way to add a new event to the AssetImageView, something like 'onRemove'. I overwritten the addAsset function from asset manager ->AssetsView to display a new icon and add a new event, but the new event doesn't trigger. I read other issues and i seen that i could overwrite open-assets, but don't reall...
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.
#1111May 14, 2018by Deepak8132 answers
Hi @artf, Hope you are doing fine. Please let us know how we can add the parent class of div when new element is dragged inside that div like i want to add "empty_cell" class when h1 element is dragged inside the column element:
artf
Please check here to get all available methods on Components
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.
#1110May 14, 2018by momu-smartcoach2 answers
i debug the code with vscode ,follow the Course(https://medium.com/@drcallaway/debugging-es6-in-visual-studio-code-4444db797954),but Report errors var doc = document, win = window, ArrayProto = Array.prototype, slice = ArrayProto.slice, filter = ArrayProto.filter, push = ArrayProto.push; ^ ReferenceError: document is...
xr0master
debug a client code for browser on server side? Just use a browser development mode.
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.
#1109May 14, 2018by FrciSmrci3 answers
Morning @artf :) I'm experiencing an similar problem to this issue. I can't drop any block (text, image, etc.) inside the column block from canvas. When I try to drop it inside layers it works normally, here is a short detailed screen recording of the problem with a visible html structure. Do you have any idea how to...
FrciSmrci
Hey @artf , figured out what was going on today, but forgot to close the issue in the euphoria. 😄 The classes from GrapesJS and Bootstrap were colliding, took me some time to realise that, because it worked when trying the same in layers....
artf
Hi @FrciSmrci honestly, I don't understand what is going on and can't reproduce it with the current demo. Did you customize those blocks somehow? From which preset/plugin do you get them? Are you able to reproduce it via jsfiddle? Your gra...
artf
I was thinking that maybe it would be a good idea defaulting it to a key like gjs-. What do you think? Yeah, probably that would prevent scenarios like this 😬 PRs are welcome :)
#1108May 14, 2018by sai-kishore2 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...
FrciSmrci
Hey @sai-kishore , here you have an resolved issue discussing how to use grapesjs in an Vue project. Hope it helps. Have a great day.
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.