This plugin is an inline content editor to allow editing rich HTML content on the fly. It's an alternative to WYMeditor with much less features. With a small file size less than 17Kb 26Kb total and only 9Kb 18Kb of code and 7Kb packed, the main concept is to keep it simple, not all users need font coloring or create tables, just the basic.
I need to change the description becouse this plugin has so much grow in the past few months, and that's for your support.
If you like jWYSIWYG, plase make a donation today. Donate Now if you have a major credit card. Just click the button below to get started:
$(function() { $('#wysiwyg').wysiwyg(); });
<style type="text/css"> .alert { background: url('img/error.gif') no-repeat !important; } </style> $('#wysiwyg').wysiwyg({ controls : { alertSep : { separator : true }, alert : { visible : true, exec : function() { alert('Hello World'); }, className : 'alert' } } });
$('a[href="#insertImage"]').click(function() { $('#wysiwyg').wysiwyg('insertImage', 'img/hourglass.gif'); });
$('#wysiwyg').wysiwyg({
controls : {
separator04 : { visible : true },
insertOrderedList : { visible : true },
insertUnorderedList : { visible : true }
}
});
$('#wysiwyg').wysiwyg('clear');
If you've got any questions about jWYSIWYG you can jump over to the support forum and I'll do my best to help you out. If you come across something that isn't quite right post the bug and I'll look into it.
jWYSIWYG uses a dual MIT/GPL license.
Copyright © 2008 Juan M Martínez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2008 Juan M Martínez
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
$('#wysiwyg').wysiwyg('clear');
$('#wysiwyg').wysiwyg({ css : { fontSize : '12px', color : 'red' } });
$('#wysiwyg').wysiwyg(); // Create the editor $('#wysiwyg').wysiwyg('insertImage', 'http://www.google.com.ar/intl/en_com/images/logo_plain.png'); // Insert a Google Logo $('#wysiwyg').wysiwyg('createLink', 'http://www.google.com'); // Create a new Google link