mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #1218 from ether/remove-alert-on-wrap
Remove alert on line wrap (editor) -- fix #277
This commit is contained in:
commit
182ea62de9
1 changed files with 1 additions and 9 deletions
|
@ -333,14 +333,6 @@ function Ace2Inner(){
|
||||||
return colorutils.triple2css(color);
|
return colorutils.triple2css(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
function doAlert(str)
|
|
||||||
{
|
|
||||||
scheduler.setTimeout(function()
|
|
||||||
{
|
|
||||||
alert(str);
|
|
||||||
}, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
editorInfo.ace_getRep = function()
|
editorInfo.ace_getRep = function()
|
||||||
{
|
{
|
||||||
return rep;
|
return rep;
|
||||||
|
@ -1624,7 +1616,7 @@ function Ace2Inner(){
|
||||||
|
|
||||||
if (linesWrapped > 0)
|
if (linesWrapped > 0)
|
||||||
{
|
{
|
||||||
doAlert("Editor warning: " + linesWrapped + " long line" + (linesWrapped == 1 ? " was" : "s were") + " hard-wrapped into " + ccData.numLinesAfter + " lines.");
|
// console.log("Editor warning: " + linesWrapped + " long line" + (linesWrapped == 1 ? " was" : "s were") + " hard-wrapped into " + ccData.numLinesAfter + " lines.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ss[0] >= 0) selStart = [ss[0] + a + netNumLinesChangeSoFar, ss[1]];
|
if (ss[0] >= 0) selStart = [ss[0] + a + netNumLinesChangeSoFar, ss[1]];
|
||||||
|
|
Loading…
Reference in a new issue