Initial implementation of Better post form #32. Still need to add language specification to code tag insertion,markdown support and latex support.
This commit is contained in:
parent
0ba23fcf01
commit
08114c44e9
@ -17,33 +17,33 @@ if (active_page == 'thread' || active_page == 'index') {
|
|||||||
key: 's',
|
key: 's',
|
||||||
multiline: false,
|
multiline: false,
|
||||||
exclusiveline: false,
|
exclusiveline: false,
|
||||||
prefix:'**',
|
prefix:'[spoiler]',
|
||||||
suffix:'**'
|
suffix:'[/spoiler]'
|
||||||
},
|
},
|
||||||
italics: {
|
italics: {
|
||||||
text: _('Italics'),
|
text: _('Italics'),
|
||||||
key: 'i',
|
key: 'i',
|
||||||
multiline: false,
|
multiline: false,
|
||||||
exclusiveline: false,
|
exclusiveline: false,
|
||||||
prefix: "''",
|
prefix: "[i]",
|
||||||
suffix: "''"
|
suffix: "[/i]"
|
||||||
},
|
},
|
||||||
bold: {
|
bold: {
|
||||||
text: _('Bold'),
|
text: _('Bold'),
|
||||||
key: 'b',
|
key: 'b',
|
||||||
multiline: false,
|
multiline: false,
|
||||||
exclusiveline: false,
|
exclusiveline: false,
|
||||||
prefix: "'''",
|
prefix: "[b]",
|
||||||
suffix: "'''"
|
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,6 +250,8 @@ 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(){
|
||||||
|
Loading…
Reference in New Issue
Block a user