We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

WYMEditor for EE2

Development and Programming

Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

JKDesign, that should be fixed now. New download file above.

If you don’t want to download just change line 67 to the following:

$stylesheet = 'stylesheet: "'. $this->EE->config->item('site_url') . $this->settings['field_css_path'] .'",';
       
JKDesign's avatar
JKDesign
3 posts
16 years ago
JKDesign's avatar JKDesign

That took care of it, thanks.

       
FirthCreative's avatar
FirthCreative
89 posts
16 years ago
FirthCreative's avatar FirthCreative

I have uploaded this to the third party dir but I can’t find it anywhere in the admin panel?

I guessed it would make a new fieldtype available, but there is nothing new in there. It doesn’t show in the plugins list, and my fieldtype link throws an error (I think it did anyway, not related!)…

I am using EE2, but when I went to copy and paste the build info into the post I discovered… “Could not retreive the current version number at this time” - weird!?

Any takers?

[UPDATE: Got it working by uploading the additional themes and using one to access the fieldtypes config!]

Cheers,

Gordon

       
FirthCreative's avatar
FirthCreative
89 posts
16 years ago
FirthCreative's avatar FirthCreative

Is it straight forward to enough to configure which styling buttons are available in the toolbar, and also what containers/classes are made available?

Regards,

Gordon

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

The classes are easy to edit, just change the wym.css file that comes with the Fieldtype, or copy the contents of it and move it to another folder and set the path in the field’s config. As for the containers, I’m not really sure how to change those. I think it requires editing the JS config for WYMEditor. It’s something I can look at doing for a future release. I’ve never needed to change those, so I haven’t looked into it to be honest.

       
dsloan's avatar
dsloan
48 posts
16 years ago
dsloan's avatar dsloan

Hi, I may be missing something basic here, but I can’t find a readme file detailing exactly how to install this? What files/folders go where?

I have copied ft.wymeditor.php to system/expressionengine/fieldtypes, the entire javascript folder contents to system/expressionengine/javascript, and the language file to system/expressionengine/language. I then created system/expressionengine/third_party/wymeditor, copied the wym.css file there. I installed the WYMEditor fieldtype via Addons>Fieldtypes, and then created WYMEditor type custom field, pointing to the CSS file.

However, when I try to publish to a channel with a WYMEditor fieldtype I get the following error:

Error: jQuery(“#field_id_12”).wymeditor is not a function

Any ideas where I’ve gone wrong, or what else is missing? I have the jQuery module installed.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

The whole package/folder, “wymeditor”, goes into the third_party folder. You don’t split up the files. All EE 2.0 add-ons are like this… so a folder can contain an extension, module, and fieldtype. The files are prefixed with ft., ext., mod., etc, which EE then knows what type of add-on it is.

       
dsloan's avatar
dsloan
48 posts
16 years ago
dsloan's avatar dsloan

Having some issues with the new build. See below for more details. http://ellislab.com/forums/viewthread/145803/

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

dsloan, can you post the exact PHP error you’re getting… the undefined offset one. Thanks.

       
dsloan's avatar
dsloan
48 posts
16 years ago
dsloan's avatar dsloan

Hi, unfortunately (fortunately, surely!) I got the problem resolved by removing the “corrupted” channel and starting again. I can’t reproduce it now without breaking it again, which I obviously don’t want to do, but if I come up against it again I’ll post.

Basically what I had was the previous EE build, installed WYMEditor and was seeing the offset errors. Then I upgraded to the latest EE build and as well as the initial offset errors I was getting the aforementioned menu status undefined index errors. I uninstalled WYMEditor and was still getting these, until I deleted and recreated the channel and content. Hope this helps.

Diarmid

       
jacobkball's avatar
jacobkball
19 posts
16 years ago
jacobkball's avatar jacobkball

I’ve downloaded the zip file, copied the whole wymeditor folder over to the third_party folder, gone to Field Types in the admin, installed it, and updated the Custom Fields to be a WYMEditor type.

However, I’m running into a problem when trying to edit or create a new entry - it’s like it’s not finding the stylesheet, as it’s just listing all the formatting options in an unordered list (and mucking up the tabs, like date, pings, etc). I’ve made sure that the Custom CSS file path points to the right location (I think), as I’ve moved my system folder above the public_html folder.

Hope someone can help!

Cheers, Jacob

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I think I know what problem you are having. Did you define your site_url in your config file as www.mysite.com, then go to the control panel via mysite.com? Or vice-versa? WYMEditor is very picky on how it loads it’s JS files.

       
jacobkball's avatar
jacobkball
19 posts
16 years ago
jacobkball's avatar jacobkball

I’ve checked the base_url etc, and it seems to be fine. I’m actually using a subdomain, ie demosite.mydomain.com, so there’s no www/non-www issues.

I’ve even tested moving the Custom CSS file to /css/wym.css and css/wym.css, but that hasn’t resolved it either.

Thanks for your assistance, though!

Cheers Jacob

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Can you post or PM screenshots to me?

Does it find the wym.css file in Firebug? Or does it report it as not found? What is the full path to wym.css according to Firebug?

       
Mid America Builders's avatar
Mid America Builders
1 posts
16 years ago
Mid America Builders's avatar Mid America Builders

I seem to be having the same issue as Jacob . I too have the system folder above the public_html for security and this seems to be the issue. I am throwing js errors and the path to the skin and others is similar to : http://www.mysite.com/system/expressionengine/third_party/wymeditor/javascript/skins/corporate/skin.js

This is a problem since this is not where my system folder is. Also breaks all the js in the nav of the control panel.

Any ideas?

Thanks, Rich

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.