kindling / react-tinymce-mention Goto Github PK
View Code? Open in Web Editor NEW@Mentions functionality for TinyMCE, built with React and Redux
License: MIT License
@Mentions functionality for TinyMCE, built with React and Redux
License: MIT License
Not sure why -- 0.2.16 builds just fine. Investigating.
Can we update the package to be compatible with react 16.2 ASAP. Need this very urgently
I keep getting this error when trying to load this component. I am just copying your example, nothing different.
Using:
react-tinymce 0.5.1
react-tinymce-mention: 0.2.16
Hello Guys,
I need some help. I do not know why but the module CustomList cannot be found.
Also, I am importing the Editor as described in the TyniMce guide for React:
import {Editor} from '@tinymce/tinymce-react';
Can anyone help here? :/
If I have "mention" in the list of plugins (as shown in the code below) I stop getting onChange and onKeyUp events from TinyMCE.
Using cdn.tinymce.com/4/tinymce.min.js
Any idea why this would be? Are there any full working code examples somewhere using this plugin?
<Mention
dataSource={[
'hello',
'helloooo',
'hello0',
'howdy']}
delimiter={'@'}
/>
<TinyMCE
content={this.props.document.editorState}
config={{
plugins: 'autolink link image lists print preview mention',
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright'
}}
onChange={this.handleEditorChange}
onKeyup={this.handleEditorChange} // ... because onChange isn't enough :-/
/>
Hi, do you know which parts I have to adapt in order to get the component working with multiple editors?
It seems like that the Mention
component which is exported does not inherit from React.Component
, and neither is a React old-style class.
Is there any reason for this? Same goes for SuggestionRenderer
and DefaultList
.
Furthermore, in React 0.14, you don't need to wrap <Provider>
child into a function.
When you add a mention on a line, press Enter to move to a new line, and then immediately add another mention on the next line, the first mention is replaced by the new mention you just added.
For example, if I try to add:
It will be converted to:
In _renderMentionIntoEditor
, after the placeholder text is inserted into the editor, editor.getContent()
will return something like <p>@joeblow</p><p>@h__PLACEHOLDER__</p>
. Notice there is no whitespace between the paragraph tags, so the regex ends up replacing the wrong thing.
Thx.
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.