I'm trying to get WYMeditor working in Joomla. So far, I've made it appear correctly and it is fully functioning on the front-page edit or submit. It's really quite simple...
Here's what I've done so far to get WYMeditor installed:
1. Set my editor (in Joomla admin) to No Editor.
2. Download it 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
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(":submit").addClass("wymupdate");
jQuery("#text").wymeditor();
});
</script>
I've worked out that I need to add code to /templates/mytemplate/html/com_content/article/form.php, and have tried adding this to the end of the file (as the iframe doesn't load these scripts automatically):
Code: Select all
<script type="text/javascript" src="/media/system/js/jquery.js"></script>
<script type="text/javascript" src="/wymeditor/jquery.wymeditor.pack.js"></script>
<script type="text/javascript">
jQuery(":submit").addClass("wymupdate");
jQuery("#text").wymeditor();
</script>
Thanks,
thugsb