GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1650December 11, 2018by SeongwoonHong2 answers
0 reactions

[Question] How to remove a link from text(remove a link)

using built-in RTE and trying to add a rte custom button that when clicking, it removes current link. Could you provide me with the code please? something like this... rte.add('custom-remove-all', { icon: 'remove', attributes: {title: 'Link', class: 'gjs-rte-action'}, result: rte => rte.insertHTML(${rte.selection()})...

artf

You can use rte.exec('unlink')

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.

#1649December 11, 2018by kickbk3 answers
2 reactions

0.14.43 update causes ckeditor focus to stop reacting in mjml

@art, I realize you stopped supporting your MJML project, but if you don't mind, I noticed an issue that the latest update causes. To reproduce:Go to https://grapesjs.com/demo-mjml.htmlDouble click in the middle of a text elementThe text area will highlight and possible one of the words will get selected.click again a...

kickbk

Resolved: The issue happens with the functions enableEditing and disableEditing in the mjml components. To fix, replace those functions with the new ones, however, I also update the pointerEvents to none on disable and all on enable. This...

artf

The same version of grapesjs with the same CKEditor plugin works fine here, so it seems not related to the latest version

kickbk

Let me demonstrate. I am going to double click a text field and then move around and try to click inside. This is v0.14.40 - Works This is v0.14.43 - Has the issue. And same issue on https://grapesjs.com/demo-mjml.html. v0.14.43 - has the...

#1648December 11, 2018by gimzani2 answers
0 reactions

[FEATURE REQUEST] Remove Font-Awesome from compiled css

Hello - quick suggestion: I'd suggest removing font-awesome from the minified css file. The reason for this is that many developers are using node - and there is a conflict with loading the font files where it says "OTS parsing error: invalid version tag". If instead you declare that grapes requires a separate install...

artf

Thanks for the request, Benjamin. Actually, we have already an open issue about this argument here, so I close this one

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.

#1647December 11, 2018by Abhisheknanda13444631 answer
0 reactions

How to display src of image component?

hi @artf i want to display my image when i drag and drop image component here is my code bm.add( 'image', { label: opt.imageBlkLabel, category: opt.categoryElementsLabel, content: { type: 'image', src: 'http://placehold.it/250x150/78c5d6/fff/', style: {color:'black'}, }, attributes: { class:'gjs-fonts gjs-f-image' } }...

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.

#1646December 11, 2018by anandaitwadekar2 answers
0 reactions

[Question] Integrating Grapesjs in the Salesforce Lightning Platform

Hi, We are trying to integrate GrapesJS in the Salesforce Lightning Platform. But it seems we are getting loads of errors. Does anyone have tried adding in the Lightning Platform? Issues are mostly related to Locker Service guidelines. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security...

artf

For integration questions SO is more valuable

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.

#1645December 11, 2018by afdallah3 answers
1 reactions

[QUESTIONS] Move panel to the left

Hi grapesjs team, I am trying to move BlockManager, StyleManager, TraitManager etc to the left. I have tried to use appendTo but I don't know why the default panel still shows up. Is it to possible to move all things within the right sidebar to the left?. Or append them to the new html element and remove the default o...

artf

Correct, as you see I'm doing the same here: https://grapesjs.com/docs/getting-started.html#start-from-the-canvas

afdallah

Thank you for confirming

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.

#1643December 10, 2018by alialrabi2 answers
0 reactions

Render New Html to editor with Action of Traits

I create New custom Tool with (default html) when draged , and i also create traits for this component when i click on checkbox excuting function (do stuff())>> the result of this function new html i want to append it to editor , i have used to select by class ( in jquery ) from editor( the default html to append to i...

artf

@alialrabi Read this before opening an issue on Github https://guides.github.com/features/mastering-markdown/ 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.

#1642December 9, 2018by steinermichael2 answers
0 reactions

[Bug] Styles incomplete after import with nested @media-styles

Hi, when importing html-code with nested @media-queries the rules are not mapped correctly in the styles-variable. This causes styles to be broken in the result html, because some parts of the Css are just missing. for testing purpose I imported this template: To import the template I did this steps:Click the trash ic...

artf

Nested @media are not supported

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.

#1641December 8, 2018by weedkiller2 answers
0 reactions

ASP sample

hi, a request can you please include an asp sample

artf

@weedkiller this is the issue tracker for the grapesjs library. Try to ask samples on SO

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.

#1640December 8, 2018by northkode2 answers
0 reactions

[Q] Loading a new module into the editor

I have built a fully working page management system into the editor but I wasn't quite sure the proper way to inject the panel into the editor without doing the below code so i'm looking for some advice if this is not correct. I have a Page Plugin that I load in: The page-editor plugin basically loads in a custom pane...

artf

Hi @northkode modules are only used internally by GrapesJS, it's not something you have to deal in your plugin, just init all your stuff inside your plugin function

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.