Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Error when editor is not visible #4

Open
GoogleCodeExporter opened this issue Oct 15, 2015 · 6 comments
Open

Javascript Error when editor is not visible #4

GoogleCodeExporter opened this issue Oct 15, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

I use the editor on a div with multiple tabs (also divs). When the tab with the 
editor is invisible then 
every few milliseconds you get an JS error ("null value").

Debugging a packed JS file is not very practical, so I cannot see where the 
error occurs.

BTW I could really use the un-packed JS files of WMD. When will you upload them?

Thanx, Bart

Original issue reported on code.google.com by bartb...@gmail.com on 29 Jul 2008 at 11:07

@GoogleCodeExporter
Copy link
Author

I should add: the visibility of the div is done with CSS.

Original comment by bartb...@gmail.com on 30 Jul 2008 at 9:43

@GoogleCodeExporter
Copy link
Author

I have same error, which occurs in wmd-base.js line 475

7.setTop=function(6f, 70, 71){
    var _72=_7.getPixelVal(_6f.style.top);
...

}

Uncaught TypeError: Cannot read property 'style' of null

Occurs while using jQuery Tabs, when WMD is on a hidden tab.

Original comment by carbonro...@gmail.com on 7 May 2010 at 3:57

@GoogleCodeExporter
Copy link
Author

Same error, please fix...

Original comment by andrea.salicetti@gmail.com on 23 Jul 2010 at 7:28

@GoogleCodeExporter
Copy link
Author

Same problem at line 561: 
Error: uncaught exception: [Exception... "Component returned failure code: 
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]"  
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: 
/wmd-1.0.1/wmd/wmd-base.js :: anonymous :: line 561"  data: no]

Original comment by mom2ma...@gmail.com on 15 Aug 2010 at 6:09

@GoogleCodeExporter
Copy link
Author

I'm experiencing the same error.  The following error messages are repeated in 
a seemingly infinite loop.

This is from firebug in Firefox 3.6.8

First:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 
(NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: 
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: 
http://localhost:3000/javascripts/wmd/wmd-base.js :: anonymous :: line 565" 
data: no]

Second:
[Break on this error] (no source for )
_6f is null
[Break on this error] var _72=_7.getPixelVal(_6f.style.top); 

Background:
My WMD include tag is nestled right against the closing body tag.  
I'm on OS X 10.6.4
Firefox 3.6.8

Context:
I experience the error when I use unobtrusive javascript to update the form 
container that holds my  WMD text field.



Original comment by dmcaler...@gmail.com on 26 Aug 2010 at 2:53

@GoogleCodeExporter
Copy link
Author

I get this error when I do not use the wmd library correctly. If the wmd editor 
is hidden when you load the page, then you need to add the following line 
BEFORE you load the wmd script: 

wmd_options = { autostart: false };

I recall there is something in the docs about it.


Original comment by Iain.Rob...@gmail.com on 9 Oct 2010 at 4:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant