Comments (7)
Full stack trace right at the exception
executeAndRestore(method=function(), restoreScrollPosition=true)wysiht...eta2.js (line 4446)
exec(composer=Object { parent={...}, element=body.loh_required, config={...}, more...}, command=undefined, tagName="A", className="_wysihtml5-temp-1385418194749", classRegExp=RegExp /non-matching-class/g, cssStyle=undefined, styleRegExp=undefined, dontRestoreSelect=undefined)wysiht...eta2.js (line 6109)
_format(composer=Object { parent={...}, element=body.loh_required, config={...}, more...}, attributes=Object { href="http://ertsert"})wysiht...eta2.js (line 5534)
exec(composer=Object { parent={...}, element=body.loh_required, config={...}, more...}, command="createLink", value=Object { href="http://ertsert"})wysiht...eta2.js (line 5585)
exec(command="createLink", value=Object { href="http://ertsert"})wysiht...eta2.js (line 5426)
_execCommand(command="createLink", commandValue=Object { href="http://ertsert"})wysiht...eta2.js (line 8406)
(?)(attributes=Object { href="http://ertsert"})wysiht...eta2.js (line 8368)
fire(eventName="save", payload=Object { href="http://ertsert"})wysiht...eta2.js (line 762)
callbackWrapper(event=click clientX=503, clientY=113)wysiht...eta2.js (line 8040)
delegate(event=click clientX=503, clientY=113)wysiht...eta2.js (line 1291)
Relevant variable at the exception:
>>> caretPlaceholder
NodeList[span._wysihtml5-temp-placeholder]
>>> caretPlaceholder.parentNode
undefined
but just commenting line 4446 does not solve the issue, I still get the same error at 2731.
from wysihtml.
And I tried this.editor.currentView.element.focus();
at line 5425 (right before the method.apply()) but it made no difference at all. There is a call to this.editor.focus() at 8404, anyway... So I got nowhere. Any ideas?
from wysihtml.
Hi, can you reproduce it on newer browsers? FF17 is fairly old and we have no aim to support it.
from wysihtml.
FF17 is the current ESR browser, but I also get it in Chrome: Uncaught Error: NotFoundError: DOM Exception 8
from wysihtml.
Also, it does not happen with xing's wysihtml5-0.4.0pre.js.
from wysihtml.
Found and fixed the error.
Problem was that cleaning up after executing commands cleaned up temporary class needed for link insertion.
from wysihtml.
Great, thanks :)
from wysihtml.
Related Issues (20)
- wysihtml is not defined HOT 12
- Html is cleaned up after inserting an image or link when the composer is empty
- Update Value Of Existing Editors HOT 1
- Wyishtml crashes on IE 11 when formatting block with p HOT 1
- wysihtml.com home page textArea
- parser: whitelist `data-foo` attribute HOT 1
- Page scrolls down after document load on Firefox HOT 12
- Anchor Tag Isn't Applying href Attribute HOT 1
- loose the focus
- inserting a link are confusing control.
- Is there a way to get editor instance from the element
- Insert link with additional data
- cannot create link with href attr
- "Change" event is not triggered once a link is added/removed
- Type for parserRules
- Inserting element at start/end of line
- [QUESTION] Where I can find the CI service?
- ctrl+right/left arrow support
- Trying to get in touch regarding a security issue
- insertUnorderedList seems like it could be rolled into outdentList and indentList
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 wysihtml.