mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
line after a title should be of normal type
This commit is contained in:
parent
11fc9f220b
commit
edc9212ff1
2 changed files with 7 additions and 2 deletions
|
@ -3367,7 +3367,12 @@ function Ace2Inner(){
|
||||||
var level = Number(listType[2]);
|
var level = Number(listType[2]);
|
||||||
|
|
||||||
//detect empty list item; exclude indentation
|
//detect empty list item; exclude indentation
|
||||||
if(text === '*' && type !== "indent")
|
if(type == "title")
|
||||||
|
{
|
||||||
|
performDocumentReplaceSelection('\n');
|
||||||
|
setLineListType(lineNum + 1, '');//remove the list
|
||||||
|
}
|
||||||
|
else if(text === '*' && type !== "indent")
|
||||||
{
|
{
|
||||||
//if not already on the highest level
|
//if not already on the highest level
|
||||||
if(level > 1)
|
if(level > 1)
|
||||||
|
|
|
@ -493,7 +493,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
{
|
{
|
||||||
cc.doAttrib(state, "strikethrough");
|
cc.doAttrib(state, "strikethrough");
|
||||||
}
|
}
|
||||||
if (tname == "ul" || tname == "ol")
|
if (tname == "ul" || tname == "ol" || tname == "h1" || tname == "h2" || tname == "h3" || tname == "h4")
|
||||||
{
|
{
|
||||||
var type;
|
var type;
|
||||||
var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls);
|
var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue