Forum closed. New forum available at http://community.wymeditor.org/

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
http://www.roxstyle.com/projects/blssi/ ... -bio.html#


app structure as follows
"app" folder
---html
..."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() {
defaultBio();
$(this).parents(".innerWrap .category").find(".bioedit").show();
$(this).parents(".innerWrap .category").find(".biodoc").hide("slow");
$(this).addClass("selected");
return false;
$('.txteditor').wymeditor({
stylesheet: 'css/tools.css',
cssPath: "css/tools.css",
jQueryPath: "js/skin.js",

postInit: function(wym) {
//adjust the editor's height
$(wym._box).find(wym._options.iframeSelector)
.css('height', '250px');
}
});
});
function defaultBio() {
$(".fulltext").hide();
$(".biodoc").show();
$(".bioedit").hide();
}
});
</script>
roxstyle
 
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

Hi!
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!
mr_lundis
 
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 3 guests

cron