Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function edit () {
- tinyMCE.execCommand('mceAddControl',false, selectedEditBox.attr('id') );
- tinyMCE.execCommand('mceFocus',false, selectedEditBox.attr('id') );
- }
- tinyMCE.init({
- editor_selector : "mceSimple",
- mode : "none",
- theme : "advanced",
- theme_advanced_buttons1 : "closeButton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,pastetext,selectall",
- plugins : "autoresize, paste",
- paste_preprocess : function(pl, o) {
- console.log(o.content);
- },
- paste_postprocess : function(pl, o) {
- console.log(o.node.innerHTML);
- },
- theme_advanced_resizing : true,
- setup : function(ed) {
- // Add a custom button
- ed.addButton('closeButton', {
- title : 'Close',
- image : '/images/editComplete.png',
- onclick : function() {
- hideEditor ( ed);
- }
- });
- }
- });
Add Comment
Please, Sign In to add comment