mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
CSS adaptations + added 'normal' style in dropdown
This commit is contained in:
parent
332c6de873
commit
349b73977b
6 changed files with 80 additions and 32 deletions
|
@ -157,10 +157,14 @@ var padeditbar = (function()
|
|||
else if (cmd == "style")
|
||||
{
|
||||
var value = document.getElementById("style-select").value;
|
||||
var style = /([a-z]+)-([12345678])/.exec(value);
|
||||
if(style[1]=="title")
|
||||
var style = value.split('-');
|
||||
if(style[0]=="title")
|
||||
{
|
||||
ace.ace_doInsertTitle(Number(style[2]));
|
||||
ace.ace_doInsertTitle(Number(style[1]));
|
||||
}
|
||||
else if(style[0]=="normal")
|
||||
{
|
||||
ace.ace_doRevertBlockStyle();
|
||||
}
|
||||
}
|
||||
else if (cmd == 'clearauthorship')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue