This repository was archived by the owner on Mar 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ wysihtml5.commands.insertOrderedList = {
3333 // Create list
3434 composer . commands . exec ( "formatBlock" , "div" , tempClassName ) ;
3535 tempElement = doc . querySelector ( "." + tempClassName ) ;
36- isEmpty = tempElement . innerHTML === "" || tempElement . innerHTML === wysihtml5 . INVISIBLE_SPACE ;
36+ isEmpty = tempElement . innerHTML === "" || tempElement . innerHTML === wysihtml5 . INVISIBLE_SPACE || tempElement . innerHTML === "<br>" ;
3737 composer . selection . executeAndRestoreSimple ( function ( ) {
3838 list = wysihtml5 . dom . convertToList ( tempElement , "ol" ) ;
3939 } ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ wysihtml5.commands.insertUnorderedList = {
3333 // Create list
3434 composer . commands . exec ( "formatBlock" , "div" , tempClassName ) ;
3535 tempElement = doc . querySelector ( "." + tempClassName ) ;
36- isEmpty = tempElement . innerHTML === "" || tempElement . innerHTML === wysihtml5 . INVISIBLE_SPACE ;
36+ isEmpty = tempElement . innerHTML === "" || tempElement . innerHTML === wysihtml5 . INVISIBLE_SPACE || tempElement . innerHTML === "<br>" ;
3737 composer . selection . executeAndRestoreSimple ( function ( ) {
3838 list = wysihtml5 . dom . convertToList ( tempElement , "ul" ) ;
3939 } ) ;
You can’t perform that action at this time.
0 commit comments