PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/xhtmlxtras/js/cite.js

#
JavaScript | 28 lines | 15 code | 4 blank | 9 comment | 2 complexity | ba39487ce6a625538b838c21502bbaa7 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. /**
  2. * cite.js
  3. *
  4. * Copyright 2009, Moxiecode Systems AB
  5. * Released under LGPL License.
  6. *
  7. * License: http://tinymce.moxiecode.com/license
  8. * Contributing: http://tinymce.moxiecode.com/contributing
  9. */
  10. function init() {
  11. SXE.initElementDialog('cite');
  12. if (SXE.currentAction == "update") {
  13. SXE.showRemoveButton();
  14. }
  15. }
  16. function insertCite() {
  17. SXE.insertElement('cite');
  18. tinyMCEPopup.close();
  19. }
  20. function removeCite() {
  21. SXE.removeElement('cite');
  22. tinyMCEPopup.close();
  23. }
  24. tinyMCEPopup.onInit.add(init);