Comments (8)
Yes, thank you @cwhite-connectfirst! I will release this as v2.0.0
from quill-mention.
Ping @cwhite-connectfirst
from quill-mention.
@webmarket7 good catch. I'll submit a PR for this shortly.
from quill-mention.
@MadSpindel Just curious - was there an intent to support a custom renderList
function? I see that we're storing a bound reference to renderList
on the options object (https://github.com/afconsult/quill-mention/blob/master/src/quill.mention.js#L29). It doesn't seem like that was the case, but I wanted to check with you first. renderList
isn't mentioned in the documentation as a valid option right now. Also, if a custom renderList
function is supposed to be a supported feature, it's not working correctly right now, since we're not referencing the renderList
function stored on the options
object when calling source
(https://github.com/afconsult/quill-mention/blob/master/src/quill.mention.js#L244).
Personally, I don't think it makes much sense to let users override the renderList function with their own definition, since renderList
is responsible for modifying instance properties. I'm going to submit this PR with renderList
removed from the options object, but if you think it should be a valid option, let me know and I can revert that change from my PR.
EDIT: Just realized why we're attaching renderList
to this.options. The intended use is to call this.renderList(...)
when a user wants to pass in data to the component. In the future, it might make sense to only pass a reference to renderList
into source
, instead of depending on renderList
being present on this
.
from quill-mention.
PR #17
from quill-mention.
@cwhite-connectfirst Yeah, I think we should remove renderList from this.options and only pass the reference. Is it something you want to do in your pull request now or should I merge it as is?
from quill-mention.
@MadSpindel I can do that in my PR, since it's an easy change. It also cleans up my fix a bit.
from quill-mention.
Just pushed those changes
Edit: Hopefully it's obvious, but removing the ability to reference renderList
on this
inside of the source
function is a breaking change. Just thought I'd mention it here for more visibility.
from quill-mention.
Related Issues (20)
- After clicking on, Prevent bubbling events
- I donot know this is quill-mention's bug or quill's bug? HOT 2
- Change tag A for link by other tag/attributes
- Nested List for values
- Mention throws TypeError s.domNode.getBoundingClientRect is not a function
- Input Area disappers on source HOT 3
- Backspace not removing the mention
- Mention forcing initial rerender HOT 2
- React Quill Editor not display when i mentionModule into function for get dynamic Users name.
- How to append quill-mention dropdown to body
- Allow mention to add space HOT 1
- Mentions dont show up when I try to use quill.getText() HOT 2
- Quill-Mention not working in React Native
- Quill-mention not supporting existing format like bold italics, underline
- Prevent click from bubbling HOT 1
- Hashtags coming in mentions object in delta quill object
- Option to remove `data-index`/`data-value` attributes (`dataAttributes` being ignored)
- Mention Dropdown not reopening
- Mention blot length always 1 HOT 1
- HTML Special Character Escape
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill-mention.