~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/jscripts/colour.js

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function init(){tinyMCEPopup.resizeToInnerSize();}
 
2
function setColour(colour){var inst=tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));var s=inst.selection.getSelectedHTML();if(s.length>0){tinyMCEPopup.execCommand('mceBeginUndoLevel');s='<font class="WYSIWYG_COLOR" color="'+
 
3
colour
 
4
+'">'+s+'</font>';tinyMCE.execCommand('mceInsertContent',false,s);tinyMCE.triggerNodeChange();tinyMCEPopup.execCommand('mceEndUndoLevel');}
 
5
tinyMCEPopup.close();}
 
 
b'\\ No newline at end of file'