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

Stylesheet integration error

Support forum for WYMeditor.

Stylesheet integration error

Postby Tatsujin on Fri Jun 12, 2009 2:01 am

Hi. I am new to WYMeditor, and while trying to integrate it into a page I'm creating, I ran into a strange error:

[Using Firebug] details.tags is undefined
'expr' : WYMeditor.Helper.trim((...s.expressions||details.tags).join(', '))
[in] http://localhost/someadress/jquery.wymeditor.js (line 3732)

This error happens only when a try to define some inline styles or trying to point to an external stylesheet. If I leave the classes field empty, It works just fine.
Am I doing something wrong? I couldn't seem to find anything that resembles my particular problem in the forum, examples or documentation.

In case it matters, this is the way I use WYMeditor:

<script type="text/javascript" src="wymeditor/jquery/jquery.js"></script>
<script type="text/javascript" src="wymeditor/wymeditor/jquery.wymeditor.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery('.wymeditor').wymeditor({


stylesheet: 'styles/styles.css', //styles to load
skin: 'compact' //skin

});
});
</script>

Thanks in advance.
Tatsujin
 
Posts: 1
Joined: Fri Jun 12, 2009 1:52 am

Re: Stylesheet integration error

Postby mr_lundis on Fri Jun 19, 2009 11:04 am

Hello, and welcome to the forum!
Are you trying to add a set of classes to the classes panel inside WYMeditor or do you want to change the styles of the content inside the editor?

If you're trying to add classes to the classes panel then your css is most likely not formated correctly - try using this file as a reference.

If you're trying to change the appearance of the content inside the editor take a look at the wymiframe.css file insted (wymeditor/iframe/default/wymiframe.css).

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

Re: Stylesheet integration error

Postby datastyle on Thu Aug 13, 2009 2:42 am

Hello, thank you for the link to the example CSS file. You may want
to update the example CSS in the wiki on the following page:

http://trac.wymeditor.org/trac/wiki/0.5/Customization

As I was using this and received the same error as above.

Thanks!
datastyle
 
Posts: 2
Joined: Wed Mar 18, 2009 4:34 am

Re: Stylesheet integration error

Postby mr_lundis on Sun Aug 23, 2009 5:00 pm

I've updated the wiki page, thank you for mentioning this issue! ;)
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