First I would like to say great great piece of software you have developed here
One minor issue ( well quite major ) is that I cannot get the Wymeditor to load...
I have jQuery correctly installed as I use it for my form validation, it seems fairly simple to load I have included all needed but it doesn't work?
I get no errors thrown in firebug which which I would think that means it is working.
I include the editor through injecting it into the header through a plugin loader
- Code: Select all
<script src="/portfolio/js/jquery/lib/jquery.min.js" type="text/javascript"></script>
<script src="/portfolio/js/jquery/jquery.validate.js" type="text/javascript"></script>
<script src="/portfolio/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="/portfolio/app/public/plugins/AdminWymeditor/javascript/jquery.wymeditor.pack.js"></script> <script type="text/javascript" src="/portfolio/app/public/plugins/AdminWymeditor/javascript/wymeditor.load.js"></script> <script type="text/javascript" src="/portfolio/app/public/plugins/AdminWymeditor/javascript/plugins/hovertools/jquery.wymeditor.hovertools.js"></script> <script type="text/javascript" src="/portfolio/app/public/plugins/AdminWymeditor/javascript/plugins/resizable/jquery.wymeditor.resizable.js"></script>
The wymeditor.load.js files simply throws the class wymeditor onto my textareas ( they do not have a default class to being with or I would use that ) and then loads the editor here is the source for that file.
- Code: Select all
function changeClass() {
var textareas = document.getElementsByTagName('textarea');
for (i=0; i < textareas.length; i++) {
textareas[i].className = 'wymeditor';
}
document.getElementById('submit').className = 'wymupdate';
}
window.onload = changeClass;
jQuery(function() {
jQuery(function() {
jQuery('.wymeditor').wymeditor({
postInit: function(wym) {
wym.hovertools();
wym.resizable();
}
});
});
});
Only thing I could think of is that the wymeditor is loading before the window.onload ( not much into jquery ) and hence not replacing the textarea because it doesnt find any to replace.
Any help would be great