how to get (grapesjs-preset-webpage.min.js file ) as (grapesjs-preset-webpage.js) file to understand editor options. thanks for this great work and help.
arthuralmeidap
go to the grapesjs-preset-webpage repo on github and check the source code. There you can take a look over all the code and check what you need. Repo: https://github.com/artf/grapesjs-preset-webpage
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 guys I'm starting to use Grapesjs and I have a problem, I am trying to add 3 new commands to create tables, add rows and cells, the table works fine but when I add a row into the table I get this error: "Invalid target position: Target collection not found, Target is not droppable, accepts [undefined], Component no...
davidherlopgt
I forget put what version I am using grapesjs - 0.13.5 <link rel="stylesheet" href="Config/grapesjs-dev/dist/css/grapes.min.css"> <link rel="stylesheet" href="Config/grapesjs-preset-webpage-master/dist/grapesjs-preset-webpage.min.css"/> <s...
artf
@davidherlopgt Have you tried to use built-in table components instead of extending them? BTW create a live demo please
davidherlopgt
Hi artf thanks for your answer, I tried to use the table component and I can add the Table with one row and one cell in the header and the body, maybe the disadvantage is that if I change the color of the row to the header the body is chan...
I've created a new type of component an general iframe, avoiding selecting the map, but when I try to select it in canvas so that the settigns appear it's impossible for me. This is the component code.
artf
Hey @chiqui3d try to copy the view logic from the ComponentMapView. Basically you're not able to select it because everything inside it is overlapping the iframe element itself (elements inside iframe are out of the editor's scope). As you...
chiqui3d
OK, but then I can never edit the previously created iframe src, or I can do is create a div envelope with editor on load in the view, for iframe elements not created from grapesjs, right? 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.
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...
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 , I import a html , using import from grapesjs-preset-newsletter, with some css classes inside the <style> tag. After the import, when I call editor.getCss(), some classes that I added before are missing now. I checked that those css classes are not been used anywhere. QQ: The CssComposer module removes the u...
artf
QQ: The CssComposer module removes the unused css classes? Yeap
arthuralmeidap
Nice, thanks!
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, How we can set array values using editor.getSelected().set('attributes',array value); If we try to do so with the same code then it insert NaN to attributes.
arthuralmeidap
@Deepak813 , You should follow one of the following syntaxes:editor.getSelected().set({title: "March 20", content: "In his eyes she eclipses..."}); -> for multiple attributes. You send a objecteditor.getSelected().set("title", "March 20");...
artf
How we can set array values using editor.getSelected().set('attributes',array value); You can't set array on attributes property, it should be an object instead. I'd recommend using a more specific methods like model.setAttributes({ title:...
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, I've read the Traits, Components and API wikis, grepped all the open & closed issues. I've even found the code where you are creating the defaults (ID, Title, Alt) you have today. There have been similar questions asked but none answer the question at hand. For every HTML component I want to add another default at...
ryandeba
Hi @kewilson, You've got a few different approaches for how to accomplish this...if every single component needs this custom trait, then I would probably override the initialize method of the default component type and add it there. Someth...
kewilson
Hey @ryandeba thanks so much for the suggestions. I put in the second one and it works for, well, the defaults as you would expect. Blocks like link, image, input just to name a few it doesn't add the attribute but those must be classified...
josefph
@kewilson could you help me adding another default trait in a specific component?
GrapeJs Version: 13.8 Local Copy JSFiddle: https://jsfiddle.net/austinbiggs/tgsykuq4/ This bug is a bit hard to explain, but should be pretty straight forward in recreating. I have menu links that are restricted to being draggable within the parent <nav>, however when dragging, a false drop placeholder appears at the...
artf
@AustinTBiggs I don't know if it's just this, but your links have data-gjs-draggable=".menu nav.menu" which instead should be something like data-gjs-draggable="nav.menu"
austinbiggs
@artf While I'm confused why that change is necessary (it's a valid selector), I made the change. Unfortunately, I'm still seeing the issue. I've updated my Fiddle to show this
artf
With .menu nav.menu you mean that you can drag only inside nested menus, maybe it supposed to be .menu, nav.menu? Here is my version and it works as expected https://jsfiddle.net/wsn33167/
There is a option in panel to change setting of component (For links, there is an option no change link - HREF - and target, for texts, id and title and for images, alt attribute). I would like to know how can I create that inputs and how can I change this attrs in selected component? I created a Panel's view to use a...
arthuralmeidap
@JulyanoF , Sorry, I missed the parenthesis. It is editor.TraitManager.getTraitsViewer().el
arthuralmeidap
Here is what you looking for: https://github.com/artf/grapesjs/wiki/Components
JulyanoF
@arthuralmeidap ok, but how can I show the component in my current Command?
Please do bare with me but it's really hard to understand the documentation. Can you guys help me do do this?
JulyanoF
@pranzikkin @pranzikkin it is an array of files:$FILES['files']You can debug and see the response on browser's network (console).As it is passing a single file of each time, the file is passing at the first position, so you can take the na...
arthuralmeidap
@pranzikkin put the http\https for the url; something like http://<youraddress>
josefph
@JulyanoF thank you for the great help. got it working now. @arthuralmeidap thank you for the help. got it working now.