SHARE
TWEET

Untitled

a guest Jan 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function edit () {
  2.  
  3.      tinyMCE.execCommand('mceAddControl',false, selectedEditBox.attr('id') );
  4.      tinyMCE.execCommand('mceFocus',false, selectedEditBox.attr('id') );
  5.  
  6.   }
  7.    
  8. tinyMCE.init({
  9.  
  10. editor_selector : "mceSimple",
  11. mode : "none",
  12. theme : "advanced",
  13. theme_advanced_buttons1 : "closeButton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,pastetext,selectall",
  14. plugins : "autoresize, paste",
  15. paste_preprocess : function(pl, o) {
  16.     console.log(o.content);
  17. },
  18. paste_postprocess : function(pl, o) {
  19.     console.log(o.node.innerHTML);
  20. },
  21. theme_advanced_resizing : true,                
  22. setup : function(ed) {
  23.     // Add a custom button
  24.     ed.addButton('closeButton', {
  25.         title : 'Close',
  26.         image : '/images/editComplete.png',
  27.         onclick : function() {
  28.             hideEditor ( ed);
  29.         }
  30.       });
  31.    }
  32.  
  33.  
  34.  });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top