Hi @artf , I created a new component with tagName = 'table'. When selected and one option of its toolbar I also created is clicked, a new modal opens, and when the user submits, some content should be added to the block. I am using editor.getSelected().get('components').add(HtmlCode), where HTML code always starts wit...
artf
I think this happens because when you add the HtmlCode is parsed by the browser, but outside of the table scope and therefore it strips your tags. Try to skip the parser by passing a component object:
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...
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 initialized grapesjs without allow script. I imported html string from the attachment (template.zip) and Grapesjs can show it correctly But when I allow script by allowScripts: 1 in init code and imported the above html string. Grapesjs doesn't show any and I can't use any grapesjs. template.zip
artf
Can you provide a live demo on jsfiddle?
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...
phucphanJaneto
Hi, @artf Sorry for late reply. Here you are: https://jsfiddle.net/oq58jk1p/6/ Currently, I comment the line "allowScript: 1" in the jsfiddle. When you test please open this again. Thanks.
Hey, I'm using CDN link for grapes js from unpkg.com In my project, I've used custom trait as a drop-down select menu which changes HTML using model.components. But today, the value is not reflecting in editor html.
faizansaiyed
When I used the previous version of GrapesJS, it works fine. [Edit] Not working in Latest @ v0.14.9, but working fine in v0.14.6
artf
Can you show me please your implementation of that trait? A live demo with jsfiddle it's even better
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...
Description: GrapesJS editor is initialized in an editor.html file as follows: localhost:9001 is a local IIS server running PHP5. The content of uploadimage.php is as follows: Since images uploaded from GrapesJS is expected to be in the $FILES array, I dump all of its content to a log file everytime a request reaches...
artf
What about the client-side? Do you see the upload request correctly (eg. from the inspector)?
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...
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 there, I solved this using the following configuration: grapesjs.init({ colorPicker: { appendTo: 'parent', offset: { top: 26, left: -166, }, }, }) Maybe you need to adjust the top and left positions for you, because I changed some sizes...
swarnat
I had exactly the same problem and thanks to your pointer to ColorPicker.js I was able to fix. Like artf say, the calculation of position is wrong, when editor is shown with a popup, like bootstrap modal. So I replaced the correction lines...
artf
Are you able to provide a live example of the issue? (jsfiddle, codepen, etc..)