added comments in ace2_inner.js + started title support based on the list code to reduce code duplication.

This commit is contained in:
Jean-Tiare Le Bigot 2012-03-01 19:01:15 +01:00
parent 26e5caa600
commit 9f70e729e0
3 changed files with 69 additions and 10 deletions

View file

@ -156,7 +156,13 @@ var padeditbar = (function()
}
else if (cmd == "style")
{
alert("TOTO");
var value = document.getElementById("style-select").value;
var style = /([a-z]+)-([12345678])/.exec(value);
if(style[0]=="title")
{
alert(style[1]);
ace.ace_doInsertTitle(Number(style[1]));
}
}
else if (cmd == 'clearauthorship')
{