Mercurial > public > sg101
annotate media/js/tiny_mce/plugins/xhtmlxtras/js/cite.js @ 185:afb65fa947f1
Committing version 1.1.6.1 of the MarkItUp! editor. This is for #57.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Mar 2010 23:25:10 +0000 |
parents | 149c3567fec1 |
children |
rev | line source |
---|---|
bgneal@183 | 1 /** |
bgneal@183 | 2 * cite.js |
bgneal@45 | 3 * |
bgneal@183 | 4 * Copyright 2009, Moxiecode Systems AB |
bgneal@183 | 5 * Released under LGPL License. |
bgneal@183 | 6 * |
bgneal@183 | 7 * License: http://tinymce.moxiecode.com/license |
bgneal@183 | 8 * Contributing: http://tinymce.moxiecode.com/contributing |
bgneal@45 | 9 */ |
bgneal@45 | 10 |
bgneal@45 | 11 function init() { |
bgneal@45 | 12 SXE.initElementDialog('cite'); |
bgneal@45 | 13 if (SXE.currentAction == "update") { |
bgneal@45 | 14 SXE.showRemoveButton(); |
bgneal@45 | 15 } |
bgneal@45 | 16 } |
bgneal@45 | 17 |
bgneal@45 | 18 function insertCite() { |
bgneal@45 | 19 SXE.insertElement('cite'); |
bgneal@45 | 20 tinyMCEPopup.close(); |
bgneal@45 | 21 } |
bgneal@45 | 22 |
bgneal@45 | 23 function removeCite() { |
bgneal@45 | 24 SXE.removeElement('cite'); |
bgneal@45 | 25 tinyMCEPopup.close(); |
bgneal@45 | 26 } |
bgneal@45 | 27 |
bgneal@45 | 28 tinyMCEPopup.onInit.add(init); |