Преглед изворни кода

Initial implementation of Better post form #32. Still need to add language specification to code tag insertion,markdown support and latex support.

pull/89/head
Benjamin Southall пре 7 година
родитељ
комит
08114c44e9
1 измењених фајлова са 13 додато и 11 уклоњено
  1. +13
    -11
      js/comment-toolbar.js

+ 13
- 11
js/comment-toolbar.js Прегледај датотеку

@@ -17,33 +17,33 @@ if (active_page == 'thread' || active_page == 'index') {
key: 's', key: 's',
multiline: false, multiline: false,
exclusiveline: false, exclusiveline: false,
prefix:'**',
suffix:'**'
prefix:'[spoiler]',
suffix:'[/spoiler]'
}, },
italics: { italics: {
text: _('Italics'), text: _('Italics'),
key: 'i', key: 'i',
multiline: false, multiline: false,
exclusiveline: false, exclusiveline: false,
prefix: "''",
suffix: "''"
prefix: "[i]",
suffix: "[/i]"
}, },
bold: { bold: {
text: _('Bold'), text: _('Bold'),
key: 'b', key: 'b',
multiline: false, multiline: false,
exclusiveline: false, exclusiveline: false,
prefix: "'''",
suffix: "'''"
prefix: "[b]",
suffix: "[/b]"
}, },
underline: {
/*underline: {
text: _('Underline'), text: _('Underline'),
key: 'u', key: 'u',
multiline: false, multiline: false,
exclusiveline: false, exclusiveline: false,
prefix:'__', prefix:'__',
suffix:'__' suffix:'__'
},
},*/
code: { code: {
text: _('Code'), text: _('Code'),
key: 'f', key: 'f',
@@ -52,14 +52,14 @@ if (active_page == 'thread' || active_page == 'index') {
prefix: '[code]', prefix: '[code]',
suffix: '[/code]' suffix: '[/code]'
}, },
strike: {
/*strike: {
text: _('Strike'), text: _('Strike'),
key: 'd', key: 'd',
multiline:false, multiline:false,
exclusiveline:false, exclusiveline:false,
prefix:'~~', prefix:'~~',
suffix:'~~' suffix:'~~'
},
},*/
heading: { heading: {
text: _('Heading'), text: _('Heading'),
key: 'r', key: 'r',
@@ -250,7 +250,9 @@ if (active_page == 'thread' || active_page == 'index') {
// setup default rules for customizing // setup default rules for customizing
if (!localStorage.formatText_rules) localStorage.formatText_rules = JSON.stringify(self.rules); 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). // setup code to be ran when page is ready (work around for main.js compilation).
$(document).ready(function(){ $(document).ready(function(){
// Add settings to Options panel general tab // Add settings to Options panel general tab


Loading…
Откажи
Сачувај