[Bug] Bind handleAdd so that implementors can get a reference
Question
I've marked as a bug just because I think this reflects a minor inconsistency; but it could also be understood as a feature request.
The scenario is:
- I'm providing my own methods for
uploadFileandhandleAdd, which is something that's possible today. - I can see that
uploadFilehas been bound to its parent object, allowing me to get a handle of the editor object by doing:this.config.em.get('Editor')inside my method, which is cool. - But, I cannot do the same for
handleAdd. I'd like to be able to do the same - and it'd be more consistent, I believe.
As an alternate solution, the editor could be passed as the last param of both those methods - I'm fine with that as well, let me know if that's preferred instead.
Answers (2)
Totally agree about the consistency 👍
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #923
[Question]: Add a select-option to toolbar
I have read the code and only I could find out that there is only a list of ToolbarButton associated with the toolbar. I have a special tra...
Issue #1039
[BUG] Missing support for empty-name traits
version: 0.14.8 I marked this as a bug, but it could be understood as a missing feature as well. Basically, grapesjs-blocks-bootstrap4 has...
Issue #1746
[FEATURE REQUEST] Don't Strip off html , head and body tags from imported html
Hi Team, We have noticed grapesjs has customised the actual template uploaded, by stripping off the html, head and body tags and adds new s...
Issue #1161
[Question] Do I need to include dropzone css to show the dragging hover
I have enable dropzone on assetManager and i think it works correctly. But I also notice that the hovering effect when the image is being d...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.