mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 08:01:02 -04:00
fix little error
This commit is contained in:
parent
357dd0a7bc
commit
9944dfc821
1 changed files with 3 additions and 2 deletions
|
@ -2573,10 +2573,11 @@ function OUTER(gscope)
|
||||||
|
|
||||||
function toggleAttributeOnSelectedLine(attributeName)
|
function toggleAttributeOnSelectedLine(attributeName)
|
||||||
{
|
{
|
||||||
|
if (!(rep.selStart && rep.selEnd)) return;
|
||||||
//set the full line to be selected
|
//set the full line to be selected
|
||||||
rep.selStart[1]=0;
|
rep.selStart[1]=0;
|
||||||
rep.selEnd[1]=rep.lines.atIndex(rep.selEnd[0]).text.length
|
rep.selEnd[1]=rep.lines.atIndex(rep.selEnd[0]).text.length;
|
||||||
toggleAttributeOnSelection(attributeName)
|
toggleAttributeOnSelection(attributeName);
|
||||||
}
|
}
|
||||||
editorInfo.ace_toggleAttributeOnSelectedLine = toggleAttributeOnSelectedLine;
|
editorInfo.ace_toggleAttributeOnSelectedLine = toggleAttributeOnSelectedLine;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue