Posts

Showing posts with the label core

Change the scroll-top behavior of the ckeditor of MindTouch Core 10.1.3

I added a fixed top navigation bar to the theme of my MindTouch Core instance and it overlays the toolbar of the ckeditor when I scroll (because both of them are supposed to be at the top when scrolling). I have to fixed that by hacking into the core javascript of MindTouch for ckeditor: 1. First, we need to beautify the following file (because it was minified): Copy content of mindtouch.js   /path/to/dekiwiki/deki/plugins/page_editor_ckeditor/ckeditor/mindtouch.js Go to  http://jsbeautifier.org/  and beautify the javascript, copy it. Replace the minified content with the beautify one into mindtouch.js 2. Next, go to line 737 and change as following:                 if (g < l) {                         // this will                          j = g - i + 55;         ...

Remove the ending character (delimiter) of the breadcrumb in MindTouch Core 10.1.3

To remove the ending character (the delimiter, " > ") of the breadcrumb in MindTouch Core (v10.1.3), you can do the following: 1. Open this file /path/to/dekiwiki/includes/Skin.php: $ nano /path/to/dekiwiki/includes/Skin.php 2. Go to line 168 and remove the special character output (in red color):         function getHierarchy() {                 $parents = $this->getParents();                 $rootNode = count($parents) == 1;                                  //special case; when you're on the home page, let's add an extra delimiter at the end, so it doesn't look like freestanding text                 if ($rootNode) {                         $parents[] = '';         ...

Adjust the width of the side panel of MindTouch Core 10.1.3

If you want to adjust the width of the side panel of MindTouch Core (v10.1.3), you need to do a little hack: 1. Open this file /path/to/dekiwiki/deki/plugins/nav_pane/nav_pane.php: $ nano   /path/to/dekiwiki/deki/plugins/nav_pane/ nav_pane.php 2. Go to line 66, change the number (in red color) to whatever you like: ...         $width = isset($wgNavPaneWidth) ? $wgNavPaneWidth : 2600 ; ... Neat!