-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #1543 : added - wiki link block button on toolbar (Working in
progress) -
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
---------------------------------- | ||
Version 0.14 | ||
Starts at : Apr. 5, 2006 | ||
Last modified at : Mar. 9, 2015 | ||
Last modified at : Mar. 11, 2015 (WIP) | ||
jeongkyu Shin. | ||
Jeongkyu Shin. | ||
E-mail : [email protected] | ||
|
@@ -58,6 +58,26 @@ function WikiCube_FormatErrorPage($target) { | |
return $target.$additional; | ||
} | ||
|
||
function WikiCube_AddButton($target) { | ||
ob_start(); | ||
?> | ||
<script type="text/javascript"> | ||
editor.addCommand('wikicubeAddLink', function () { | ||
}); | ||
editor.addButton('wikicubeAddWikiLink', { | ||
title: 'Add Wiki Link', | ||
cmd: 'wikicubeAddLink', | ||
icon: 'save' | ||
}); | ||
editor.settings.toolbar1 = editor.settings.toolbar1 + ' wikicubeAddWikiLink'; | ||
editor.render(); | ||
</script> | ||
<?php | ||
$result = ob_get_contents(); | ||
ob_end_clean(); | ||
return $target.$result; | ||
} | ||
|
||
function WikiCube_DataHandler($data) { | ||
$config = Setting::fetchConfigVal($data); | ||
if (!array_key_exists('mode',$config)) return false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters