mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
pad_editor: Unexport unnecessarily exported focusOnLine()
This commit is contained in:
parent
e22639edac
commit
f70f3197b6
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ const padeditor = (() => {
|
||||||
const targetLineNumber = $(this).index() + 1;
|
const targetLineNumber = $(this).index() + 1;
|
||||||
window.location.hash = `L${targetLineNumber}`;
|
window.location.hash = `L${targetLineNumber}`;
|
||||||
});
|
});
|
||||||
exports.focusOnLine(self.ace);
|
focusOnLine(self.ace);
|
||||||
self.ace.setProperty('wraps', true);
|
self.ace.setProperty('wraps', true);
|
||||||
self.initViewOptions();
|
self.initViewOptions();
|
||||||
self.setViewOptions(initialViewOptions);
|
self.setViewOptions(initialViewOptions);
|
||||||
|
@ -162,7 +162,7 @@ const padeditor = (() => {
|
||||||
|
|
||||||
exports.padeditor = padeditor;
|
exports.padeditor = padeditor;
|
||||||
|
|
||||||
exports.focusOnLine = (ace) => {
|
const focusOnLine = (ace) => {
|
||||||
// If a number is in the URI IE #L124 go to that line number
|
// If a number is in the URI IE #L124 go to that line number
|
||||||
const lineNumber = window.location.hash.substr(1);
|
const lineNumber = window.location.hash.substr(1);
|
||||||
if (!lineNumber || lineNumber[0] !== 'L') return;
|
if (!lineNumber || lineNumber[0] !== 'L') return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue