Comments (2)
Hi @MuzavaziTawa , I checked copy text to clipboard and paste it in the editor and it works properly in both platforms. Please check your RN version to be at least "0.57.5".
To be able to check if editor is empty or not, you may check editor's value prop which is a JavaScript array object as below:
value.length === 1 && value[0].content.length === 1 && value[0].content[0].text.length === 0
from react-native-cn-richtext-editor.
Thanks this seems to be working fine.
from react-native-cn-richtext-editor.
Related Issues (20)
- When will new version be released ?
- Cannot listen to onFocus on WebView version (2.0.0-rc3) HOT 3
- WHY?!?!?!?! THIS IS PROBLEM. HOT 2
- Insert link HOT 2
- How to access value from editor? HOT 1
- Text value is wrapped in many paragraphs HOT 1
- Android: CNtextEditor stops scrolling after a while
- CNRichTextView chinese bug HOT 1
- onRemoveImage is not getting triggered
- How to autofocus in CNRichTextView? HOT 2
- Use in combination with expo & react native web
- How to Add sub bullet point? HOT 1
- CNEditor in version ^2.0.0-rc3 HOT 1
- text goes in the opposite direction HOT 1
- CNRichTextEditor always points to the first index when typing on iOS HOT 6
- Text colors are treated as independent Styles - resulting in SPAN tag with multiple colors HOT 1
- Background is not working HOT 1
- textInputStyle props do not reflect any changes on the textInput. HOT 1
- Expo SDK outdated;
- Default font family on IOS is Times New Roman but should be same as in android
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 react-native-cn-richtext-editor.