#3477May 24, 2021by ahmedderkaoui1 answer
By default, the editor is initiated with english language when the init does not contain: However, when I try to change the language using the i18n method: setMessages like below: editor.I18n.setMessages({ en: tr }); this happens:Opened tabs (like Style Manager which by default gets open at load) do not get updated by...
artf
Follow the issue template
#3476May 24, 2021by krishnaeverestengineering2 answers
<img width="1172" alt="Screenshot 2021-05-24 at 6 55 23 PM" src="https://user-images.githubusercontent.com/55732888/119354444-b8cbb500-bcc1-11eb-8e67-27e020c879aa.png"> I was getting this error while writing unit tests and I am testing editor instance to be defined. Randomly test case is passing but mostly I am gettin...
YyueeiWY
It seems like u are missing the class name or parent element ID. below is the example of using querySelector. <pre> var parentElement = document.getElementById('deviceready'); var listeningElement = parentElement.querySelector('.listening'...
artf
Sorry but this might depend on way too many factors (eg. your environment) and has nothing to do with the core itself.
#3475May 24, 2021by ThetripGr1 answer
Version: 0.16.44 You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? Every instance has their own toolbar working properly Describe the bug detailed So previously i made another issue relating to instances #335...
artf
Thanks for the report @DodoTrip The fix is ready for the next release.
#3472May 24, 2021by YyueeiWY1 answer
Version: "grapesjs": "^0.17.3" "grapesjs-preset-webpage": "^0.1.11" You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the current behavior? Css attribute (-webkit-background-clip:text;) doesn't work in grapesjs-preset-webpage(disap...
YyueeiWY
Alright I solved it by using grapesjs-parser-postcss I didn't know there's a CSS parser plugin. https://github.com/artf/grapesjs-parser-postcss
#3470May 22, 2021by iabhiyaanNo answers
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...
#3465May 19, 2021by anatoli-dp2 answers
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...
artf
Well, actually the proper API would be .components('html string here') which seems to work as expected, but I'll investigate the reset thing because I'd expect to work the same way
artf
Ok seems like the backbone's reset method injects the silent option which prevents the CSS collection to render the added style, so for now, I'd prefer to avoid putting hacky conditions to remove that option and would recommend sticking wi...
#3464May 19, 2021by mosh-tudor1 answer
Description0 - Visit: https://grapesjs.com/demo.html1 - Select button: <img width="674" alt="Screenshot 2021-05-19 at 15 09 53" src="https://user-images.githubusercontent.com/668451/118818468-a5c97700-b8b4-11eb-9006-56abe37a8343.png">2 - Change content: <img width="253" alt="Screenshot 2021-05-19 at 15 10 05" src="htt...
#3463May 18, 2021by anatoli-dp3 answers
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...
anatoli-dp
Maybe put the controls in the front of the text and then offset the entire box slightly for each indent or stacked item. That way u can stack them as far as you want without issue 🤷 Im going to end up rolling my own solution to achieve th...
artf
Yeah, unfortunately, the default layer panel is not that scalable, we need to rethink how is rendered
artf
Yeah moving controls in front of the text sound reasonable (eg. and make them visible only when I hover the component). Anyway, being not such a common case having so much messy structure I wouldn't put a lot of priority on this problem, b...
#3462May 18, 2021by ahmedderkaoui2 answers
Is there a way to re-render or refresh traits (which are customs, not built-in traits) of all the components existing whithin the canvas?
artf
mmm what is the point? Your custom traits should already react to component changes (if you created them properly).
#3461May 17, 2021by ahmedderkaouiNo answers
I know there is a function that can rerender the view of a trait. However, I still don't know how and where to use it.