#1884March 12, 2019by mjshalash2 answers
I would like to be able to position the Rich Text Editor toolbar right above the text a user highlights inside of a div/textarea/etc. The reason for this is when the text sections are too large and the top nor the bottom of the component is visible then it would be convenient for the user to just see the toolbar appea...
artf
It's a bit out of the scope for the RTE and, personally, I don't plan to invest time on this
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.
#1882March 12, 2019by nethzor2 answers
Hi, I went through the other questions posted here and could not get it to work. All I need to do is to access a specific trait of a specific component (or selected one) and to set some of its attributes. I default the trait to display: none and when I did some server logic the trait gets a value and is displayed to t...
artf
Please read carefully this https://grapesjs.com/docs/modules/Traits.html and check your code, it's a bit a mess (you're mixing component code inside traits)
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.
#1881March 12, 2019by lucasschirm3 answers
Problem When you add a custom command with stop and dont stop will not run again if I dont set force: 1 as a parameter when running. When you add a custom command with a stop method like: var fired = 0; editor.Commands.add('custom-command', { run() { fired++; console.log("fired ", fired); }, stop() { console.log("Comm...
artf
Hi @lucasschirm and thanks for the report. As you've might notice this is the breaking change we've introduced in the latest version https://github.com/artf/grapesjs/releases/tag/v0.14.55 The reason behind it is quite simple. If you create...
lucasschirm
Thank you, I've sended an PR about the modal closing not firing the modal I close trigger. On Thu, Mar 21, 2019, 3:14 PM Artur Arseniev <[email protected]> wrote: Hi @lucasschirm <https://github.com/lucasschirm> and thanks for the r...
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.
#1880March 11, 2019by Gianglo2 answers
Hello, There is a way to specify the blocks that should NOT be able to be inserted within a specific droppable block?
artf
Yes, you can specify a component with a draggable property like this *:not(.cant-insert-here)
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.
#1879March 11, 2019by lyczos2 answers
Hello, I want to add a new field in traits manager (components settings). This field should select an image from the assets manager and retrieve back URL link to the image)after selecting an image from assets). I just want to ask is there any smilar built-in solution in current GrapesJS version?
artf
I just want to ask is there any smilar built-in solution in current GrapesJS version? Unfortunately no, maybe one day we'll create a common module for UI elements but currently, there is no one, so you have to create a new custom trait.
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.
#1878March 11, 2019by MisterFK1 answer
Hi, I have the same bug than the wiki. The panel layer, style, traits, etc... have some issue. How can i resolve this plz?
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.
#1877March 11, 2019by jwilson-lyonscg3 answers
Currently, all the style manager values that you change for an element simply update a <style> tag inline in the HTML. Is it possible to change this behavior so that changing the CSS values adds or removes custom classes to the element? A good reason for this is Bootstrap 4. 99% of Bootstrap customization involves sim...
artf
It's already possible with Classes section (you can remove/toggle/update them)
jwilson-lyonscg
Have you considered that the potential target audience for such a tool (think eCommerce merchandisers) has no idea what "classes" are in HTML and would be able to greatly benefit from having simple dropdown menus to choose from predefined...
artf
Have you considered that the potential target audience for such a tool (think eCommerce merchandisers) has no idea what "classes" are in HTML and would be able to greatly benefit from having simple dropdown menus to choose from predefined...
#1876March 10, 2019by VardanNersesyan2 answers
Hi all, 1) Can I use this framework for generate pdf file after editing html page? And how can I do it? 2) Can I make ready templates and provide it for editing by user via framework? And how can I do it? Tnx.
artf
Can I use this framework for generate pdf file after editing html page? And how can I do it? There is no built-in command to generate PDF for you but you can get the HTML code of the template and generate the PDF from itCan I make ready te...
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.
#1875March 10, 2019by simplecommerce3 answers
Hi, I built a component and block that I can drag and drop in the canvas. My issue is that some styles rely on the ID. I know this might not be ideal, but it's like this at the moment. My problem is when I reload the editor with my previous values by passing it in the components prop, all my ID's are changed. Is there...
artf
@simplecommerce new release published
simplecommerce
Anyone have any idea for this issue? My issue happens when I use for example, bootstrap tabs, in order to make them work and load the right tab, it uses the ID, but since the ID is being regenerated when I load the editor with my component...
sbiwaichoon
same issue here.if i have use that id in code, id change when(id-2) reload template to grapejs (auto added "-2" to my id) , if i dont use that id in any part of my code, is fine, id wont change
#1873March 9, 2019by alialrabi2 answers
Hi artf, i have a question when i implement grid component having row and three cells , i want to make these cells resiazable on width and height , So i make an event when component selected set it resizable =true , when resize cells height it works , but the cells width not affect yet when resize it , how i can make...
artf
This is because the grid uses flex so you should use flex-basis for the width. In that case resizable should be an object like this { keyWidth: 'flex-basis' }
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.