Adding wysiwyg and settings
This commit is contained in:
64
public/wymeditor/examples/03-plugin.html
Normal file
64
public/wymeditor/examples/03-plugin.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!--
|
||||
* WYMeditor : what you see is What You Mean web-based editor
|
||||
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
||||
* Dual licensed under the MIT (MIT-license.txt)
|
||||
* and GPL (GPL-license.txt) licenses.
|
||||
*
|
||||
* For further information visit:
|
||||
* http://www.wymeditor.org/
|
||||
*
|
||||
* File Name:
|
||||
* 03-plugin.html
|
||||
* WYMeditor integration example - plugin activation.
|
||||
* See the documentation for more info.
|
||||
*
|
||||
* File Authors:
|
||||
* Jean-Francois Hovinne - http://www.hovinne.com/
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>WYMeditor</title>
|
||||
<script type="text/javascript" src="../jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.min.js"></script>
|
||||
<script type="text/javascript" src="../wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js"></script> <!-- load the plugin -->
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// Use the 'postInit' option, which will execute the function passed in the parameter.
|
||||
|
||||
jQuery(function() {
|
||||
jQuery('.wymeditor').wymeditor({
|
||||
|
||||
html: '<p>Hello, World!<\/p>',
|
||||
stylesheet: 'styles.css',
|
||||
postInit: function(wym) {
|
||||
|
||||
//postInit is executed after WYMeditor initialization
|
||||
//'wym' is the current WYMeditor instance
|
||||
|
||||
//we generally activate plugins after WYMeditor initialization
|
||||
|
||||
//activate 'hovertools' plugin
|
||||
//which gives advanced feedback to the user:
|
||||
wym.hovertools();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>WYMeditor integration example - plugin activation</h1>
|
||||
<p><a href="http://www.wymeditor.org/">WYMeditor</a> is a web-based XHTML WYSIWYM editor.</p>
|
||||
<form method="post" action="">
|
||||
<textarea class="wymeditor"></textarea>
|
||||
<input type="submit" class="wymupdate" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user