/static/scripts/tiny_mce/plugins/xhtmlxtras/js/cite.js

http://n23.googlecode.com/ · JavaScript · 25 lines · 15 code · 4 blank · 6 comment · 2 complexity · 23598cbbbb631b162688a6874718c93c MD5 · raw file

  1. /**
  2. * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
  3. *
  4. * @author Moxiecode - based on work by Andrew Tetlaw
  5. * @copyright Copyright Š 2004-2008, Moxiecode Systems AB, All rights reserved.
  6. */
  7. function init() {
  8. SXE.initElementDialog('cite');
  9. if (SXE.currentAction == "update") {
  10. SXE.showRemoveButton();
  11. }
  12. }
  13. function insertCite() {
  14. SXE.insertElement('cite');
  15. tinyMCEPopup.close();
  16. }
  17. function removeCite() {
  18. SXE.removeElement('cite');
  19. tinyMCEPopup.close();
  20. }
  21. tinyMCEPopup.onInit.add(init);