Skip to content

Commit

Permalink
refs #1543 : test - wiki page link button added.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Mar 19, 2015
1 parent f4f0c1f commit a697b74
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions plugins/WikiCube/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,25 @@ function WikiCube_AddButton($target) {
ob_start();
?>
<script type="text/javascript">
editor.addCommand('wikicubeAddLink', function () {
editor.addCommand('wikicubeAddLink1', function () {
selectedContent = editor.selection.getContent();
editor.execCommand('mceInsertContent', false, "[[" + selectedContent + "]]");
});
editor.addButton('wikicubeAddWikiLink', {
editor.addButton('wikicubeAddWikiLink1', {
title: 'Add Wiki Link',
cmd: 'wikicubeAddLink',
cmd: 'wikicubeAddLink1',
icon: 'save'
});
editor.settings.toolbar2 = editor.settings.toolbar2 + ' wikicubeAddWikiLink';
editor.addCommand('wikicubeAddLink2', function () {
selectedContent = editor.selection.getContent();
editor.execCommand('mceInsertContent', false, "[[tg:" + selectedContent + "]]");
});
editor.addButton('wikicubeAddWikiLink2', {
title: 'Add Wiki Link',
cmd: 'wikicubeAddLink2',
icon: 'save'
});
//editor.render();
</script>
<?php
Expand Down

0 comments on commit a697b74

Please sign in to comment.