mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 03:16:16 -04:00
parent
5174937392
commit
cc2736ae3d
1 changed files with 6 additions and 2 deletions
|
@ -5167,6 +5167,8 @@ function Ace2Inner(){
|
||||||
var level = 0;
|
var level = 0;
|
||||||
var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n));
|
var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n));
|
||||||
|
|
||||||
|
var togglineOn = false;
|
||||||
|
|
||||||
// Used to outdent if ol is removed
|
// Used to outdent if ol is removed
|
||||||
if(allLinesAreList){
|
if(allLinesAreList){
|
||||||
togglingOn = false;
|
togglingOn = false;
|
||||||
|
@ -5185,7 +5187,9 @@ function Ace2Inner(){
|
||||||
|
|
||||||
if(togglingOn){
|
if(togglingOn){
|
||||||
mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]);
|
mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]);
|
||||||
}else{
|
}
|
||||||
|
|
||||||
|
if(!togglingOn){
|
||||||
// scrap the entire indentation and list type
|
// scrap the entire indentation and list type
|
||||||
if(level === 1){ // if outdending but are the first item in the list then outdent
|
if(level === 1){ // if outdending but are the first item in the list then outdent
|
||||||
setLineListType(n, ''); // outdent
|
setLineListType(n, ''); // outdent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue