Giter Site home page Giter Site logo

Exception adding a link about wysihtml HOT 7 CLOSED

voog avatar voog commented on July 29, 2024
Exception adding a link

from wysihtml.

Comments (7)

brunobg avatar brunobg commented on July 29, 2024

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.

brunobg avatar brunobg commented on July 29, 2024

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.

priithaamer avatar priithaamer commented on July 29, 2024

Hi, can you reproduce it on newer browsers? FF17 is fairly old and we have no aim to support it.

from wysihtml.

brunobg avatar brunobg commented on July 29, 2024

FF17 is the current ESR browser, but I also get it in Chrome: Uncaught Error: NotFoundError: DOM Exception 8

from wysihtml.

brunobg avatar brunobg commented on July 29, 2024

Also, it does not happen with xing's wysihtml5-0.4.0pre.js.

from wysihtml.

pulges avatar pulges commented on July 29, 2024

Found and fixed the error.
Problem was that cleaning up after executing commands cleaned up temporary class needed for link insertion.

8a2693b
a21df76

from wysihtml.

brunobg avatar brunobg commented on July 29, 2024

Great, thanks :)

from wysihtml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.