Hi! Im trying to replace selected text with a code (random code). It's works, i can see the code, but when i do editor.getHtml() not. If i deselect the component (selecting another one) the change takes effect. Thanks!
artf
The content of the model is actually updated once you blur from the editable component, so when you call getHtml it's just not yet there
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.
@artf When I load the html content, this is including in all the components a random identifier that in your examples "Websites" and "Newsletter" I don't see them. So How I can force to keep my stylesheet and don't use random identifiers in all the components? I'm asking you this question because if I change the ident...
jvillena
@artf I've just fixed I was including the variable avoidInlineStyle: true, and it has to be avoidInlineStyle: 0
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 want to know Is there any way to enable input mouse scroller in style manager as you can my screenshot. i want to initalize scroller to increase the values on click and drag .Thanks
artf
Like the one which already exists?
Abhisheknanda1344463
Yes @artf i want to initialize same which is already exist.Thanks
artf
Ok... the feature is active by default on all number inputs
I have custom component and want to set trait default values from html. below is html rendered by component. traits I am trying to set for are image url, anchor url and h4 content.
artf
By default, the initial value of the trait corresponds to component's attribute. In the case of changeProp use, you should pass the initial value via data-gjs-* attribute
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.
Hello Grapejs team, Thanks for this wonderful project saved my time and so far I had great experience with integration and your community support. I want to load Canvas Styles and Scripts after the page is loaded from DB (Rest API) canvas: { styles: ['https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.mi...
artf
Hi @inventorbit for such a case you should manipulate directly the canvas document
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 is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to two elements. whenever i am adding style to the element, it is reflecting in both the elements. but after reloading editor it generates class dynamically again. I want to stop that...
AnkitKachhadiya
hey @Abhisheknanda1344463 Can you try this code editor.CssComposer.getAll().reset();
Abhisheknanda1344463
@AnkitKachhadiya Hey I want to Stop dynamic classes Which is generatred every time when you refresh page.
artf
@Abhisheknanda1344463 This should explain you some stuff https://jsfiddle.net/szLp8h4n/267/ Please @Abhisheknanda1344463, next time, create a demo for this kind of questions
Hi Artur, I had forgot to say i am using latest version, i am sorry for that. I want to add a plugin for editable social media icons, image url and link href in component settings. Something like this: I create a new trait type and i want to add multiple editable input something like above image. I tried to create inp...
nojacko
@alperenuzun Did you figure this one out?
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.
I've created a simple block content with a custom data-gjs-custom-name = "test". When i save the page i cant see those attributes on the generated HTML. Then, when i load that HTML, those custom components appears as BOX. Is there any way to keep those attributes?
artf
No, those attributes are only used for the import. Please, learn how to store correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
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.
I'm trying to implement an example as in a demo, namely: when clicking on a background image installation, a window pops up offering you to download files or select from already downloaded ones. Uploading to the server I successfully implemented, the files are loaded, saved in the desired folder, after they appear in...
artf
Hi @Barahten please try to provide a live demo for your issues, just can't help you without seeing how you set up the editor.
Barahten
@artf, work on real server http://gjs.barahten.com/ Pen - https://codepen.io/barahten/pen/QBygdY The script works a little strangely. On the local server it works by uploading files to the folder but does not work on adding to the manager,...
artf
Regarding the first pointBut when updating the page and repeating all the above manipulations, the asset manager (the one on the left is empty). First of all, update the library, 0.12.17 is too much outdated actually BTW, just to give you...