summaryrefslogtreecommitdiff
path: root/js/comment-toolbar.js
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-14 01:59:27 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-14 01:59:27 +0900
commit08114c44e96c05264fd7cf85c154a4aed311e9c5 (patch)
tree18001e95607258c035f74f7dde75e325bcf678aa /js/comment-toolbar.js
parent0ba23fcf01e5a8d2956bc5931fc3f99c3ce277ba (diff)
Initial implementation of Better post form #32. Still need to add language specification to code tag insertion,markdown support and latex support.
Diffstat (limited to 'js/comment-toolbar.js')
-rw-r--r--js/comment-toolbar.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/js/comment-toolbar.js b/js/comment-toolbar.js
index 51aa9808..1dd994da 100644
--- a/js/comment-toolbar.js
+++ b/js/comment-toolbar.js
@@ -17,33 +17,33 @@ if (active_page == 'thread' || active_page == 'index') {
key: 's',
multiline: false,
exclusiveline: false,
- prefix:'**',
- suffix:'**'
+ prefix:'[spoiler]',
+ suffix:'[/spoiler]'
},
italics: {
text: _('Italics'),
key: 'i',
multiline: false,
exclusiveline: false,
- prefix: "''",
- suffix: "''"
+ prefix: "[i]",
+ suffix: "[/i]"
},
bold: {
text: _('Bold'),
key: 'b',
multiline: false,
exclusiveline: false,
- prefix: "'''",
- suffix: "'''"
+ prefix: "[b]",
+ suffix: "[/b]"
},
- underline: {
+ /*underline: {
text: _('Underline'),
key: 'u',
multiline: false,
exclusiveline: false,
prefix:'__',
suffix:'__'
- },
+ },*/
code: {
text: _('Code'),
key: 'f',
@@ -52,14 +52,14 @@ if (active_page == 'thread' || active_page == 'index') {
prefix: '[code]',
suffix: '[/code]'
},
- strike: {
+ /*strike: {
text: _('Strike'),
key: 'd',
multiline:false,
exclusiveline:false,
prefix:'~~',
suffix:'~~'
- },
+ },*/
heading: {
text: _('Heading'),
key: 'r',
@@ -250,7 +250,9 @@ if (active_page == 'thread' || active_page == 'index') {
// setup default rules for customizing
if (!localStorage.formatText_rules) localStorage.formatText_rules = JSON.stringify(self.rules);
-
+ if (!localStorage.formatText_toolbar) localStorage.formatText_toolbar = true;
+ if (!localStorage.formatText_keybinds) localStorage.formatText_keybinds = true;
+
// setup code to be ran when page is ready (work around for main.js compilation).
$(document).ready(function(){
// Add settings to Options panel general tab