Forum closed. New forum available at

location of js and css files

Support forum for WYMeditor.

location of js and css files

Postby roxstyle on Wed Jan 20, 2010 7:39 pm

I am working on a large app and trying to fit wymeditor into its structure. My problem is understanding the location for the js and css files. i have already incorporated the css and js into the structure of the app. i am trying to understand how/or where to change the location of the js and css files to get wymeditor working. I appreciate any help.

Here is my test page ... -bio.html#

app structure as follows
"app" folder
..."js" folder (holds jquery.wymeditor.js and skin.js)
..."css" folder (css incorporated into several css all called from tools.css)

the html head calls
<link rel="stylesheet" href="css/tools.css" type="text/css" media="all" />

and all js is called before </body>
i have made a function on a click - a panel opens with a form and the wymeditor
<script type="text/javascript">
$(function() {
$(".bio-edit").click(function() {
$(this).parents(".innerWrap .category").find(".bioedit").show();
$(this).parents(".innerWrap .category").find(".biodoc").hide("slow");
return false;
stylesheet: 'css/tools.css',
cssPath: "css/tools.css",
jQueryPath: "js/skin.js",

postInit: function(wym) {
//adjust the editor's height
.css('height', '250px');
function defaultBio() {
Posts: 1
Joined: Wed Jan 20, 2010 7:20 pm

Re: location of js and css files

Postby mr_lundis on Mon Feb 01, 2010 10:19 am

The paths should point to the directory in which the specific files resides - not the file directly.

An example:
Code: Select all
stylesheet: 'tools.css',
cssPath: "/css/",
jQueryPath: "/js/",

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests