react-component / editor-mention Goto Github PK
View Code? Open in Web Editor NEWReact Mention
Home Page: http://react-component.github.io/editor-mention/
License: MIT License
React Mention
Home Page: http://react-component.github.io/editor-mention/
License: MIT License
ant.design Mention
组件没有如果没传 getSuggestionContainer
属性进来,会导致下面的代码报错:
https://github.com/react-component/editor-mention/blob/master/src/Mention.jsx#L117
@RaoHai 麻烦帮忙看下
Please update immutable like rc-editor-core
or, better, make it a peer dependency like others do.
antd2.0的mention貌似用的这个库。。。缺少onSelect回调很不爽啊,希望能加上
Do you have plan to update draft-js library?
It is important to me because of draft-js licence has been changed.
The peerDep in the package.json is causing issues for my project. We need to use immutable~3.8
due to some of the features in that version but editor mention requires immutable~3.7
. Because its refrenced as a peer dependency and I can't install 3.7.4 I get issues building the shrinkwrap for my project despite not using editor-mention
(it's being included through ant).
I haven't looked at the compatibility for this project but can you not use immutable^3.7
or directly depend on 3.7 so it doesn't conflict with project installs of immutable?
when i input "@Someone", it's ok;
when i input "xxxx@someone" , it's not ok;
this situation the "Suggestions" get "this.props.store.getOffset()" size is 0
I am trying to append the selected values of drop-down in the mention input. when updating the value property of the mention using state in the react.js. Got the characterlist, getlenth undefined errors of the editor state.
http://react-component.github.io/editor-mention/examples/customizeSuggesionAndTag.html
This example uses a functional component for tag.
Why does 'Mention' expect an element to be the prop type for tag?
shouldn't it be tag: _propTypes2['default'].func
instead of tag: _propTypes2['default'].element
?
mention in defaultValue not using provided Tag component
该项目依赖的immutable是 ^3.8.1
依赖的draft-js的immutable版本是~3.7.6
这种情况会导致下载了两个不同版本的immutable,可有优化方案?
npm版本已经改成了0.6.9,而仓库版本是0.6.0。。。
然后。。。
为何0.6.9(还是之前的哪个版本)把value和onChange的回调值从editorState
改成了contentState
。。。
然后。。。
antd的mention component少ref,我没法一直往下拿到最下层draft的Editor,需要使用他的focus功能
我在ie8下运行editor-mention/examples/simple.js,报异常
“无法获取未定义或 null 引用的属性“hasOwnProperty””,异常位于:
Record.prototype.has = function(k) { return this._defaultValues.hasOwnProperty(k); };
Should immutable
be peerDependency
?
editor-mention
is not a plugin nor extension of immutable
. This seems like an ordinary dependency to me:
Related issues:
#26
ant-design/ant-design#10710
在 componentWillReceiveProps
的时候 this.refs.mention.reset();
页面卡死
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.