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

Implementation in Joomla

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

Implementation in Joomla

Postby thugsb on Thu Dec 10, 2009 10:18 am

Hi,
I'm trying to get Wymeditor implemented in Joomla. So far, I've made it appear correctly, but when I try to submit a new article an error comes up saying "Article must have some text". Any ideas?

Here's what I've done so far to get WYMeditor installed:

1. Set my editor (in Joomla admin) to No Editor (which will bring up a simple textarea with ID #text).
2. Download WYMeditor from http://www.wymeditor.org/download/
3. Copy wymeditor/ directory into httpdocs/wymeditor
4. Followed instructions here for Minimum Page Integration: http://trac.wymeditor.org/trac/wiki/0.5/Integration
I.e. I've added the following to /templates/mytemplate/index.php (the php file that displays all pages)
Code: Select all
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="wymeditor/jquery.wymeditor.pack.js"></script>
<script type="text/javascript">
jQuery(function() {
    jQuery("#text").wymeditor();
});
</script>


So what do I need to do now to get the input text recognised? Or am I going about this all wrong?

Thanks,
thugsb
thugsb
 
Posts: 4
Joined: Thu Dec 10, 2009 10:15 am

Re: Implementation in Joomla

Postby eadevel on Thu Dec 10, 2009 1:24 pm

You must add the class wymupdate to the submit button.

Code: Select all
<input type="submit" class="wymupdate" />


Or take the easy road and add it with jquery. But be sure to put the line before creating the instance of wymeditor.

Code: Select all
jQuery(function() {
  jQuery(":submit").addClass("wymupdate");
  jQuery(".wymeditor").wymeditor();
});


Hope it helps.. :)
eadevel
 
Posts: 22
Joined: Thu Sep 27, 2007 12:00 pm

Re: Implementation in Joomla

Postby thugsb on Thu Dec 10, 2009 3:15 pm

Thanks for answering. Unfortunately the alert is still coming up (I added it with jQuery, but firebug is showing it to be there correctly). Any other ideas?
thugsb
 
Posts: 4
Joined: Thu Dec 10, 2009 10:15 am

Re: Implementation in Joomla

Postby thugsb on Thu Dec 10, 2009 3:18 pm

Ooh, hang on, it is working! I forgot the semi-colon! :roll:
thugsb
 
Posts: 4
Joined: Thu Dec 10, 2009 10:15 am

Re: Implementation in Joomla

Postby eeerlend on Sat Sep 04, 2010 3:32 pm

Have someone successfully made a native Joomla component/plugin of WYMeditor? Im very interested:)

eeerlend
eeerlend
 
Posts: 1
Joined: Sat Sep 04, 2010 3:20 pm

Re: Implementation in Joomla

Postby Arnold60 on Tue Sep 14, 2010 8:30 am

Hi guys,i have a problem on my Joomla 3rd party extension.
please give me some impormatiom to fix this problem. :cry:
make money online
Arnold60
 
Posts: 1
Joined: Tue Sep 14, 2010 8:12 am

Re: Implementation in Joomla

Postby Joshee23 on Sat Oct 09, 2010 5:40 am

Hi,
Please specify your problem so that we can help you.
Thanks,,,,how to deal with depression
Joshee23
 
Posts: 1
Joined: Sat Oct 09, 2010 5:23 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest