ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.86k stars 1.09k forks source link

Error copying content from local document to onlyoffice [ERROR] nodeJS - changesError:Uncaught ReferenceError: node is not defined Script: https://documentServer/7.1.1-23/sdkjs/word/sdk-all.js Line: 5411:56 #2349

Closed Promisefm closed 1 year ago

Promisefm commented 1 year ago

This issue is unique.

Operating System of DocumentServer

Windows Server, Docker

Version information

Version: 7.1.1 (build:23)

Expected Behavior

No matter where the content is copied, it should be pasted into onlyOffice normally. This was possible before

Actual Behavior

An error occurred when copying local document content and pasting it into an online document in OnlyOffice Feige图片20230821143540

Reproduction Steps

Open an empty document that has been uploaded to the onlyOffice service. Copy content from local documents. Error reported by ctrl+c in an opened onlyOffice document

Additional information

[ERROR] nodeJS - changesError: docId = -697939547 Error: Uncaught ReferenceError: node is not defined Script: https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js Line: 5411:56 userAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 platform: Win32 isLoadFullApi: true isDocumentLoadComplete: true StackTrace: ReferenceError: node is not defined at Ja.plg (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5411:56) at Ja.amg (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5409:107) at Ja.Qlg (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5392:414) at Ja.hoe (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5416:37) at Ja.o4a (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5416:121) at b (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5448:226) at Ja.V$a (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5450:375) at Uc (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5441:170) at Ja.V$a (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5452:388) at Uc (https://192.168.100.110:9003/7.1.1-23/sdkjs/word/sdk-all.js:5441:170) Blocked script execution in 'https://192.168.100.110:9003/7.1.1-23/web-apps/apps/documenteditor/main/index.html?_dc=7.1.1-23&lang=en&customer=ONLYOFFICE&frameEditorId=iframeEditor}' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

Promisefm commented 1 year ago

If you clear the document format and paste the same content in the same document, there will be no error reported.

LuckySpecialist commented 1 year ago

Hi @Promisefm, please update DocumentServer to the current version of the application (7.4.1) and check the behavior on it. If the problem persists, describe in detail the copy source and data type in any example. If you attach a video with a demonstration of the problem or the source files on which the problem is reproduced, it will be easier to understand the cause. We are considering problems only for the version currently in release. Thanks for understanding.

Promisefm commented 1 year ago

Thank you for your reply. After upgrading to 7.4.1, there were no errors when pasting, but the style was a bit messy. Will this style issue be fixed later

LuckySpecialist commented 1 year ago

Please create a new issue and describe in detail what, from where and how you copy and paste, let's see what the problem is. It is advisable that you check this problem on several PCs, including in incognito mode.

Promisefm commented 1 year ago

Here's the new issue #2352

Rita-Bubnova commented 1 year ago

I close this issue. Feel free to comment or reopen it if you got further questions.