This is expected. Unfortunately “Load JavaScript Skin Extensions” doesn’t work well with the standalone WYSIWYG edit mode, see Loading... . You should keep this option unchecked (which is the default). Note that the in-place WYSIWYG edit mode is loading the required JavaScript skin extensions regardless of this option, so you can use that for existing plain wiki pages. For creating new pages and for structured pages (TextArea properties) you’re forced to use the standalone WYSIWYG editor though, so you need to leave with the fact that JavaScript is not loaded inside the editing area.
one more thing is that i can not see the attachments in pages. it shows the count of attachments but under the tab its empty. and when if i try to upload a document i get this error at the center bottom of the browser.