mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
big CSS improvement in the dropdown of the editbar + fixed a bug in the header DOM generation that caused breakage in the authorship highlighting code
This commit is contained in:
parent
457f9f913d
commit
d95f08536b
4 changed files with 88 additions and 46 deletions
|
@ -115,7 +115,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument)
|
|||
else if(details[1] == "title")
|
||||
{
|
||||
markup = 'h'+Number(details[2]);
|
||||
preHtml = '<'+markup+' class="list-' + Security.escapeHTMLAttribute(listType) +' >';
|
||||
preHtml = '<'+markup+' class="list-' + Security.escapeHTMLAttribute(listType) +'" >';
|
||||
postHtml = '</'+markup+'>';
|
||||
}
|
||||
//handle bullet lists and indentations
|
||||
|
|
|
@ -156,7 +156,8 @@ var padeditbar = (function()
|
|||
}
|
||||
else if (cmd == "style")
|
||||
{
|
||||
var value = document.getElementById("style-select").value;
|
||||
dropdown = document.getElementById("style-select");
|
||||
var value = dropdown.value;
|
||||
var style = value.split('-');
|
||||
if(style[0]=="title")
|
||||
{
|
||||
|
@ -166,6 +167,7 @@ var padeditbar = (function()
|
|||
{
|
||||
ace.ace_doRevertBlockStyle();
|
||||
}
|
||||
dropdown.selectedIndex = 0;
|
||||
}
|
||||
else if (cmd == 'clearauthorship')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue