Comments (4)
Can you describe the steps to reproduce the problem and also post you editor config?
from ckeditor-textselection-plugin.
I believe editor config is not important.
Steps to reproduce:
Add following code to the top of page source on demo page (http://w8tcha.github.io/CKEditor-TextSelection-Plugin/demoCodeMirror.html):
<style type="text/css">
.someClass {
width: 100%;
}
</style>
Leave text cursor inside style tag (i.e. put it after semicolon).
Switch to wysiwyg mode.
Error reported by browser is not always accurate, but failing call is:
decodeURIComponent(startNode.$.nodeValue)
Reason - nodeValue of style tag doesn't contain valid URL-enoded data (it has percent sign followed by semicolon)
from ckeditor-textselection-plugin.
I have a fix for this problem in my fork, but it is not well-tested yet, so i'm not sure if everything is ok.
fork is here: https://github.com/dm0/CKEditor-TextSelection-Plugin
Also in my fix I attempted to resolve problem of empty lines addition to source code of style and script tags.
from ckeditor-textselection-plugin.
Thanks now i was able to reproduce the issue, but you fix attempt doesn't seem to work.
I replaced decodeURIComponent with unescape and now it seem to work
from ckeditor-textselection-plugin.
Related Issues (20)
- 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
- Storing content in browser local storage does not work properly / sporadically loses changes without local storage 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.