Current behaviour: When traits get added with TraitView.addType method they are extend TraitsViewer.itemView(which is TraitView). When TraitSelectView class extends TraitView it overrides initialize(o) method and calls TraitView.prototype.initialize.apply(this, arguments); to initialize parent class(as i understand)....
artf
Hi @vrudikov I didn't get what do you suggest. Would you like to have some kind of init() method which acts as a callback after the initialization?
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.
Hey, I tried to figure this out by myself, but I'm feeling I'm going a little bit in circles. So I hope you will have some time to read this through and help me with the problem. I get an html template with multiple custom component tags => <custom-component-tag></custom-component-tag><custom-component-tag></custom-co...
FrciSmrci
@artf Thank you once again, will debug with this in mind. :)
artf
Hi, I'd say this is the same as #260 so your const value = document.createElement('div'); which is purely a DOM element, without a binded model, is blocking the editor to select its custom-component parent. Solution:
artf
The highlight is applied via gjs-comp-selected class which uses outline property, so check via inspector what is going on, probably you have some kind of reset property on them (eg. outline: none;)
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.
Hi, I check the sources but it didn't seems to have a centralized language file (one per plugins per example) but multiple places where wording must be translated. Am I wrong ? I would like to be able to use english and french interfaces. So I would like to know how to translate grapejs (and it's plugins) to other lan...
artf
Hi @FoxXav you can check #26 about i18n and why currently I have no plans for it
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.
When using a UI framework that provides custom classes, it would be nice to be able to use these classes on things like panels, so you wouldn't have to rewrite the CSS. A possible syntax may be: It would also be useful to be able to do this after the fact for presets, using a setter for example. I could not find a way...
artf
You can set attributes in this way
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.
First off, thank you. This is really wonderful stuff. Actually it's better than that. It is astonishingly good. Some questions right off. Possibly feature requests, not sure. The form section has the usual widgets but no 'range' option. How can I add one?More complex perhaps: is there an example of how to wrap (say) a...
g40
@artf thank you for the pointers. @tommedema yes and any help welcomed. :)
artf
The form section has the usual widgets but no 'range' option. How can I add one? You should read about BlocksMore complex perhaps: is there an example of how to wrap (say) a chart.js instance so it appears in the tool palette etc? Just lik...
tommedema
@g40 if you ever get to do this would it be open source? would like to have a peek
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...
cjpollard
Asset Manager's getAll function should do just that.
rajatkumcom
Could someone please help with following:- like we have - getHtml(), getCss(), getStyle(), getComponents(). what we have for assets.
rajatkumcom
Thanks for response. But I want to get the similar assets data which is send at the time we do editor.store(). like - [{"type":"image","src":"./img/bg-gr-v.png","unitDim":"px","height":1,"width":1728,"date":"2015-02-01"}]
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...
rajatkumcom
In my case I want both local and remote storage at the same time. The data will be stored locally in localstorage( If he/she will refresh the page without saving the save button the data will be rendered from local storage ) and when user...
artf
Yeah, just leave the default localStorage active and create a button which makes use of remote storage
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...
rajatkumcom
I have done changes in grapes.js file which is not recommended var typeJson = this.get('contentTypeJson'); var typeJson = false; Resolved issue.
rajatkumcom
Getting this error ( SyntaxError: Unexpected token < in JSON at position 0 ) when trying to use:- storageManager: { type: 'remote', autosave: false, setStepsBeforeSave: 1, contentTypeJson: true, params: {}, storeComponents: true, storeStyl...
v8jupiter
Can you give more details?Your have this error when trying to load template from 'http://localhost/grapesjs/fileLoad.php'?Or you have error in init moment. Can you show full initialization of editor? I think your problem in this endpoint h...