Operating system
Linux
Joplin version
2.13.3
Desktop version info
2.13.11
Sync target
Joplin Server
What issue do you have?
The docx,xlsx,txt,sh,yaml files imported from evernote cannot be opened.
If I delete the attachment and re-import it, I can open it on my computer and my phone, but from the next day onwards, only my phone can open it, it's weird!
Maybe related:
opened 04:01PM - 14 Nov 23 UTC
closed 07:17PM - 06 Dec 23 UTC
bug
desktop
editor
high
## Operating system
macOS
## Joplin version
2.13.5
## Desktop versio… n info
Joplin 2.13.5 (prod, darwin)
Client ID: 64df9fdc01c6479ead3a1f7b132d48a6
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes
Revision: 1d04ec6
## Current behaviour
Editing an HTML note with an attachment link in the rich text editor clears the link's target. For example,
```html
<a href=":/93d25985c31c4aad91d5e710390de5f1" alt="syncReport-1689640089262.txt">syncReport-1689640089262.txt</a>
```
becomes
```html
<p><a data-from-md="" href="#">syncReport-1689640089262.txt</a>. Some edit here.</p>
```
### Reproduction steps
1. Create a new HTML note (for example, by exporting a note as HTML, then importing it as HTML)
2. Open the note in the markdown/HTML editor (HTML in this case)
3. Delete the note's content
4. Attach a file to the note using the "attach" button
5. Switch to the rich text editor
6. Edit the note
7. Switch back to the markdown/HTML editor
## Expected behaviour
The resource link should be preserved.
## Logs
**Note**: This log is from the Electron development tools and starts just before attaching a resource to the HTML note.
```
Logger.ts:254 07:58:35: Preparing scheduled sync
Logger.ts:254 07:58:35: Starting scheduled sync
Logger.ts:254 07:58:35: Synchronizer: Sync: starting: Starting synchronisation to target 3... supportsAccurateTimestamp = false; supportsMultiPut = false [1699977515154]
Logger.ts:254 07:58:35: Synchronizer: Indexing resources...
Logger.ts:254 07:58:35: ResourceService::indexNoteResources: Start
Logger.ts:254 07:58:35: ResourceService::indexNoteResources: Completed
Logger.ts:254 07:58:35: Synchronizer: Sync target remote info: SyncInfo {version_: 3, masterKeys_: Array(5), e2ee_: {…}, activeMasterKeyId_: {…}, ppk_: {…}}
Logger.ts:254 07:58:35: Synchronizer: Sync target is already setup - checking it...
Logger.ts:254 07:58:35: Synchronizer: Sync target local info: SyncInfo {version_: 3, masterKeys_: Array(5), e2ee_: {…}, activeMasterKeyId_: {…}, ppk_: {…}}
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete undefined
Logger.ts:254 07:58:37: Synchronizer: Sync: updateRemote: local has changes: Note: (Local dd659c3451ff488eb6dd27fce922d4f9): (Remote dd659c3451ff488eb6dd27fce922d4f9.md)
Logger.ts:254 07:58:37: Synchronizer: Processing a path that has already been done: dd659c3451ff488eb6dd27fce922d4f9.md. sync_time was not updated? Remote item has an updated_time in the future?
Logger.ts:254 07:58:37: Synchronizer: Sync: finished: Synchronisation finished [1699977515154]
Logger.ts:254 07:58:37: Synchronizer: Operations completed:
Logger.ts:254 07:58:37: Synchronizer: updateRemote: 1
Logger.ts:254 07:58:37: Synchronizer: Total folders: 25
Logger.ts:254 07:58:37: Synchronizer: Total notes: 717
Logger.ts:254 07:58:37: Synchronizer: Total resources: 982
Logger.ts:254 07:58:37: Sync has finished and note has never been changed - reloading it
Logger.ts:254 07:58:41: resourceHandling: Attaching /Users/MyUserName/Downloads/Link text.pdf
Logger.ts:254 07:58:41: resourceHandling: File was attached.
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete undefined
TinyMCE.tsx:336 Loading script /Applications/Joplin.app/Contents/Resources/app.asar/vendor/lib/tinymce/tinymce.min.js
loadScript.ts:14 Loading script: {src: '/Applications/Joplin.app/Contents/Resources/app.asar/vendor/lib/tinymce/tinymce.min.js', id: 'tinyMceScript', loaded: false}
TinyMCE.tsx:336 Loading script gui/NoteEditor/NoteBody/TinyMCE/plugins/lists.js
loadScript.ts:14 Loading script: {src: 'gui/NoteEditor/NoteBody/TinyMCE/plugins/lists.js', id: 'tinyMceListsPluginScript', loaded: false}
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete null
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete null
Logger.ts:254 07:58:46: SearchEngine: Updating FTS table...
Logger.ts:254 07:58:47: SearchEngine: Updated FTS table in 21ms. Inserted: 1. Deleted: 0
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete null
useMessageHandler.ts:18 Got ipc-message: noteRenderComplete null
2useMessageHandler.ts:18 Got ipc-message: noteRenderComplete undefined
```
## Additional information
This has also been tested on Linux (Ubuntu 23.10) with Joplin 2.12.19. The issue is present in that version as well.
The above issue has been fixed in the dev
branch on GitHub, but hasn't made its way into a release.
<p><a data-from-md="" title=":/c9a422dcde1647529b1f6dfb4287c7e5" href=":/c9a422dcde1647529b1f6dfb4287c7e5">test.txt</a></p>
I'm not quite sure if that's what you're talking about.
That link still has an href
(an href
tells Joplin what the link points to), so I would expect it to work.
The bug was that editing an HTML note in the rich text editor would break resource links. (In general, Joplin has much better support for Markdown notes than HTML notes.)
This forum post might also be related: Links to embedded files don't work in WYSIWYG
Yes, I'm in the latter situation——Links to embedded files don't work in WYSIWYG
Thanks for your help, is it possible that I just need to wait for the bug to be fixed, do I need to provide logs or something?
ajay
28 December 2023 09:18
6
In your OP your write "files cannot be opened", in a later response you write "links don't work". I think you might want to explain what you want to do (exactly), where the files are (exactly), whether the files were added to the Joplin profile DB ... etc.
If you still have access to the ENEX export, I suggest re-importing as markdown:
Joplin has much better support for markdown notes than HTML notes.
(While this bug is mostly partially fixed (but not yet released), the fix won't restore links that were broken by the rich text editor in other notes.)
What if I reimport it? Will it have no effect?
After the fix is available, re-importing should fix the issue. (Until then, links will work until the note has been edited in the rich text editor).
Edit : There's another related bug that also needs to be fixed! (Links to other notes).
system
Closed
27 January 2024 15:01
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.