This is the first time i am trying wymeditor and it is pretty cool. But i am having a couple of problems:
1. The textarea i applied the wymeditor class to becomes unusuable from PHP or from the form's "reset" button. It works just fine without wymeditor class.
2. I just can't add nor modify styles.css to include my own style definitions. No matter what i do, it didnt seem to work at all. Here is my code
- Code: Select all
<script type="text/javascript" src="editor/jquery.js"></script>
<script type="text/javascript" src="editor/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="editor/jquery.wymeditor.min.js"></script>
<script type="text/javascript" src="editor/plugins/hovertools/jquery.wymeditor.hovertools.js"></script>
<script type="text/javascript" src="editor/plugins/resizable/jquery.wymeditor.resizable.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery('.wymeditor').wymeditor({
/*html: '<p>Hello, World!<\/p>', //set editor's value*/
stylesheet: 'editorstyles.css', //styles to load
skin: 'silver', //activate silver skin
postInit: function(wym) {
wym.hovertools(); //activate hovertools
wym.resizable(); //and resizable plugins
}
});
});
</script>
and the textarea which is inside a form:
- Code: Select all
<textarea rows="25" cols="90" name="content" class="wymeditor">{$_POST[content]}</textarea>
hope i am clear.