Permalink
Browse files

fixed picker in script.js

  • Loading branch information...
turnermm committed Jun 13, 2016
1 parent b37f71b commit f1f6424b07b9f332286b92fade64e69ecfe9fd19
Showing with 6 additions and 6 deletions.
  1. BIN TT-G.psd
  2. BIN TT-W.psd
  3. +3 −4 script.js
  4. +3 −2 syntax.php
BIN -22.1 KB TT-G.psd
Binary file not shown.
BIN -148 KB TT-W.psd
Binary file not shown.
@@ -1,11 +1,10 @@
if (typeof window.toolbar !== 'undefined') {
toolbar[toolbar.length] = {
type: "format",
type: "picker",
title: "Skip Entity",
icon: '../../plugins/skipentity/skent.png',
key: "",
open: "``",
sample: "Text",
close: "``"
list:[{"type":"format","title":"white","icon":"..\/..\/plugins\/skipentity\/tt-w.png","open":"```","close":"```"},
{"type":"format","title":"gray","icon":"..\/..\/plugins\/skipentity\/tt-g.png","open":"``","close":"``"}]
};
}
@@ -56,13 +56,14 @@ function render($mode, &$renderer, $data) {
$renderer->doc .= '<code>';
}
else {
// $renderer->doc .= '<code style = "background-color:white; border: none; box-shadow:none;">';
$renderer->doc .= '<code class="skipentity">';
}
break;
case DOKU_LEXER_UNMATCHED :
$renderer->doc .= $renderer->_xmlEntities($match);
$match = $renderer->_xmlEntities($match);
$match = str_replace("\n","<br />", $match);
$renderer->doc .= $match;
break;
case DOKU_LEXER_EXIT :
$renderer->doc .= "</code>";

0 comments on commit f1f6424

Please sign in to comment.