mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit c8459658b74bc8fd6565695f387fdb0d90a6dc7d
parent 419575702e0854b173666f3221150c73e92ae04b
Author: markseu <mark2011@mayberg.se>
Date:   Sun,  2 Jun 2019 22:14:51 +0200

Updated editor and languages

Diffstat:
Msystem/extensions/core.php | 2+-
Msystem/extensions/edit.css | 3+++
Msystem/extensions/edit.js | 4+++-
Msystem/extensions/edit.php | 2+-
Msystem/extensions/install-languages.zip | 0
5 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -4,7 +4,7 @@ // This file may be used and distributed under the terms of the public license. class YellowCore { - const VERSION = "0.8.4"; + const VERSION = "0.8.5"; const TYPE = "feature"; public $page; //current page public $content; //content files from file system diff --git a/system/extensions/edit.css b/system/extensions/edit.css @@ -410,6 +410,9 @@ font-size: 1.3em; font-weight: bold; } +#yellow-popup-format #yellow-popup-format-notice { + font-weight: bold; +} #yellow-popup-format #yellow-popup-format-quote { font-style: italic; } diff --git a/system/extensions/edit.js b/system/extensions/edit.js @@ -543,6 +543,7 @@ yellow.edit = { case "h3": yellow.editor.setMarkdown(elementText, "### ", "insert-multiline-block", true); break; case "paragraph": yellow.editor.setMarkdown(elementText, "", "remove-multiline-block"); yellow.editor.setMarkdown(elementText, "", "remove-fenced-block"); break; + case "notice": yellow.editor.setMarkdown(elementText, "! ", "insert-multiline-block", true); break; case "quote": yellow.editor.setMarkdown(elementText, "> ", "insert-multiline-block", true); break; case "pre": yellow.editor.setMarkdown(elementText, "```\n", "insert-fenced-block", true); break; case "bold": yellow.editor.setMarkdown(elementText, "**", "insert-inline", true); break; @@ -652,6 +653,7 @@ yellow.edit = { "<li><a href=\"#\" id=\"yellow-popup-format-h3\" data-action=\"toolbar\" data-status=\"h3\">"+this.getText("ToolbarH3")+"</a></li>"+ "<li><a href=\"#\" id=\"yellow-popup-format-paragraph\" data-action=\"toolbar\" data-status=\"paragraph\">"+this.getText("ToolbarParagraph")+"</a></li>"+ "<li><a href=\"#\" id=\"yellow-popup-format-pre\" data-action=\"toolbar\" data-status=\"pre\">"+this.getText("ToolbarPre")+"</a></li>"+ + "<li><a href=\"#\" id=\"yellow-popup-format-notice\" data-action=\"toolbar\" data-status=\"notice\">"+this.getText("ToolbarNotice")+"</a></li>"+ "<li><a href=\"#\" id=\"yellow-popup-format-quote\" data-action=\"toolbar\" data-status=\"quote\">"+this.getText("ToolbarQuote")+"</a></li>"+ "</ul>"; break; @@ -1062,7 +1064,7 @@ yellow.editor = { var textSelectionNew = ""; var lines = yellow.toolbox.getTextLines(textSelection); for (var i=0; i<lines.length; i++) { - var matches = lines[i].match(/^(\s*[\#\*\-\>\s]+)?(\s+\[.\]|\s*\d+\.)?[ \t]+/); + var matches = lines[i].match(/^(\s*[\#\*\-\!\>\s]+)?(\s+\[.\]|\s*\d+\.)?[ \t]+/); if (matches) { textSelectionNew += lines[i].substring(matches[0].length); } else { diff --git a/system/extensions/edit.php b/system/extensions/edit.php @@ -4,7 +4,7 @@ // This file may be used and distributed under the terms of the public license. class YellowEdit { - const VERSION = "0.8.8"; + const VERSION = "0.8.9"; const TYPE = "feature"; public $yellow; //access to API public $response; //web response diff --git a/system/extensions/install-languages.zip b/system/extensions/install-languages.zip Binary files differ.