Comments (4)
What errors are you getting? and which browser did you use?
from ckeditor-textselection-plugin.
i of course cannot reproduce the local storage error right now, but i believe it was a cannot read length of null at line 342 which is:
var diff = content.length - savedContent.length;
the local storage error occurred in Chrome (Version 63.0.3239.84 (64-bit)) and Firefox 57.0 (64-bit).
i can still reproduce losing data when switching between Source and WYSIWYG modes. that also happens in those version of Chrome and Firefox. right now, looks like it loses data when switching from WYSIWYG to Source mode. it correctly saves content when switching from Source to WYSIWYG. if i remove the local storage code, it works most of the time. occasionally, users have noticed missing content when switching between Source and WYSIWYG.
are there version requirements to use this? we are on codemirror plugin 1.17.4 and sourcearea plugin 4.5.11. our Drupal ckeditor module version is 1.17 (the ckeditor version our drupal module is running is 4.5.6).
from ckeditor-textselection-plugin.
also, FWIW: with the local storage code removed, i think the intermittent missing data issue may be related to the browsers caching the old version of the plugin's javascript. i changed the timestamp token in this line of code in ckeditor/ckeditor/ckeditor.js file (drupal module path) to force browser to get latest file and it seems to work in local and dev environments.
d={timestamp:"20180103"...
from ckeditor-textselection-plugin.
i added some checks that should avoid the issues with the localstorage
from ckeditor-textselection-plugin.
Related Issues (20)
- decodeURIComponent fails if source text contains % HOT 4
- Cursor position only works to first tag on return to WYSIWYG HOT 4
- Could this work with other source code plugins? HOT 2
- scroll caret / selection into view HOT 4
- If cursor is in the <head> section of a FullPage document, extra code is added HOT 8
- Selected text is removed in IE10 and IE11 HOT 1
- cke_bookmarks HOT 15
- Content lost when clicking undo after switching from WYSIWYG to SOURCE and back to WYSIWYG HOT 2
- cursor misplaced returning from sourcodeview HOT 4
- Switching from Source to WYSIWIG and back duplicates TABLE/TR/TD HOT 2
- Turning to Source when a widget is focused adds empty paragraphs around it HOT 4
- fullPage = true compatibility HOT 3
- The plugin seems to prevent the content from changing when switching to source and back? HOT 4
- Dropping selection when switching to WYSIWYG if the selection starts or ends with the HTML element HOT 3
- Selection/Position not kept if fullPage: true in CKEditor config HOT 2
- Bookmark Spans not getting removed HOT 2
- CKEditor 5 upgrade HOT 2
- TextSelection doesn't work in SourceDialog with CodeMirror HOT 7
- Hi, In source mode, How to autoscroll the selection? HOT 1
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 ckeditor-textselection-plugin.