Enable readonlyhyperlinkfo functionality for Calc.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I246b58b849ae74aa552c3fd9202c851aad6606ec
pull/8057/head
Gökay Şatır 2024-01-15 18:09:29 +03:00 committed by Szymon Kłos
parent d5340dae84
commit be29c99606
1 changed files with 2 additions and 1 deletions

View File

@ -1886,6 +1886,7 @@ L.CanvasTileLayer = L.Layer.extend({
else if (textMsg.startsWith('readonlyhyperlinkclicked: ')) {
var jsonString = textMsg.replace('readonlyhyperlinkclicked: ', '');
var json = JSON.parse(jsonString);
var position = this._twipsToLatLng(json.position);
this._showURLPopUp(position, json.link);
}
@ -3641,7 +3642,7 @@ L.CanvasTileLayer = L.Layer.extend({
' x=' + x + ' y=' + y + ' count=' + count +
' buttons=' + buttons + ' modifier=' + modifier);
if (app.file.permission === 'readonly' && type === 'buttonup' && this._docType === 'text') {
if (app.file.permission === 'readonly' && type === 'buttonup' && (this._docType === 'text' || this._docType === 'spreadsheet')) {
if (this._map.hyperlinkPopup !== null)
this._closeURLPopUp();
app.socket.sendMessage('readonlyclick x=' + x + ' y=' + y);