mojoe
25 December 2023 07:01
1
Operating system
Windows
Joplin version
2.13.11
Desktop version info
Joplin 2.13.11 (prod, win32)
Client ID: 98e03581a9004e72af43d3dce8854350
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes
Revision: 6670f9a
Favorites: 1.3.2
Note Tabs: 1.4.0
Simple Backup: 1.3.4
Sync target
Dropbox
Editor
WYSIWYG Editor
What issue do you have?
At some point links in a note (PDF, Zip, etc.) don't do anything when Ctrl-clicked in the WYSIWYG editor. Over a year ago, I imported everything from Evernote. Originally, the links opened the document or file. If I switch to the markdown editor, the links work. Links to web pages do work in the WYSIWYG editor.
In the past two days, I had to do a fresh reinstall of Window 10, and reinstall all of my programs. I installed the latest version of Joplin and synced with Dropbox. Encryption is on. After everything synced and decrypted, I tried the file links again. They still don't work in the WYSIYWG editor.
See the attached screenshot. A simple click on the link in markdown mode opens the PDF. No combination of clicking (or right-click and Open) will open the PDF in WYSIWYG mode.
Screenshots
ajay
26 December 2023 09:39
2
Tried 2 minutes ago, with Joplin 2.13.9, absolutely no problem with links in either editor.
Did you import all your Evernote notes as HTML rather than Markdown? That code looks very messy.
Try creating a new note with the below as the link and see if it works in both editors.
[CompTIA A+.pdf](:/6782df27c34d44d7b7367251b9a91d09)
Check the long number in brackets is the same as in your original note. My eyes have trouble copying long hex strings!!
mojoe
27 December 2023 18:32
4
Yes, I did originally import as HTML. Your suggestion works in both editors.
However, as I said, the links used to work in both editors. I'm not sure when things changed. It's the same notes as before.
I really don't want to go through hundreds of notes to manually change the code. Evernote is long gone, so I can't re-import everything.
After trying to open the link in the Rich Text Editor, when you go back to the Markdown Editor is the href="6782df27c34d44d7b7367251b9a91d09"
bit still there or has it been replaced by href="#"
?
I only ask as this seems to be possibly similar to, but not quite the same as, this bug which it appears has been fixed for an imminent release.
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.
mojoe
7 January 2024 02:50
7
The new version 2.13.13 fixed this. My attachments open again in the WYSIWYG editor. Thanks.
1 Like
system
Closed
6 February 2024 02:50
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.