You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pasting URLs always causes them to be shortened. #1410
Trying to insert a URL into a Markdown or Plain Text file. The URL is automatically shortened so that it cannot be read. This happens also when I use "paste as plain text" option.
If I type the URL by hand then after a short pause it gets shortened but the link can be removed by pressing Ctrl+Z
In the case of pasting then the link cannot be removed.
Steps to reproduce
Create a new Plain Text File or Markdown file.
Paste in a URL using either Ctrl+V or right-click Paste or right-click Paste as plain text
Expected behavior
The URL is made into links only in Documents not in plain text files. In Markdown files the URL should only be shortened on the "Preview" window and not in the edit window.
I cannot reproduce this, but maybe I'm misunderstanding the issue. Are you talking about the standard text editor? Could you please add a screenshot or video?
Here you can see in both images. I'm not sure what you mean by standard text editor, but I think that is what I am using, it is not Collabora. I saw that OwnCloud has a setting to change this behaviour but I'm not sure where it is in OpenCloud and if it is the cause. It happens across different Windows computers using Edge or Firefox.
removing the extension with type='linkShortener' will prevent folding.
There is some additional detail provided in another issue #951 - Is this something you can make permanent for OpenCloud? Is the same code used for the Plain Text File function? So this would solve both use-cases.
Actually we updated the package to have especially that feature. It helps big time when displaying b64 images. Honestly I would wait for a response from md-editor-v3 team
Please can you add something on the issue explaining your thoughts because it is a real problem if you cannot read or edit any link longer that say 10 characters. But if by solving one problem you create another problem then it isn't really a solution. I don't know anything about b64 image argument.
@ccoles146 I created a PR which will shorten links, if they are longer than 120chars instead of 30. I also asked the developer of the editor if it will be possible to edit shorten links in the future
Activity
JammingBen commentedon Oct 21, 2025
I cannot reproduce this, but maybe I'm misunderstanding the issue. Are you talking about the standard text editor? Could you please add a screenshot or video?
ccoles146 commentedon Oct 22, 2025
Here you can see in both images. I'm not sure what you mean by standard text editor, but I think that is what I am using, it is not Collabora. I saw that OwnCloud has a setting to change this behaviour but I'm not sure where it is in OpenCloud and if it is the cause. It happens across different Windows computers using Edge or Firefox.
JammingBen commentedon Oct 22, 2025
I still can't reproduce it:
There have been some changes to the line break behavior in the editor recently though. Which OpenCloud version are you running?
JammingBen commentedon Oct 22, 2025
Ah, now I got it. For me it only happens with long URLs.
We'll have to look into it, thanks for reporting! Moving this issue to the Web repository.
AlexAndBear commentedon Oct 22, 2025
Unfortunately this behavior is coming from the link shortening feature via the last md-editor-v3
update.
It's not very intuitive, I think we should report it upstream.
The issue should be reproducible in the vendors example as well
https://imzbf.github.io/md-editor-v3/en-US
ccoles146 commentedon Oct 23, 2025
I have reported upstream, you can see the exact behaviour direct on the website you posted @AlexAndBear
Issue is here: imzbf/md-editor-v3#972
AlexAndBear commentedon Oct 23, 2025
@ccoles146 Thank you!
ccoles146 commentedon Oct 23, 2025
Apparently there is an option to solve this.
There is some additional detail provided in another issue #951 - Is this something you can make permanent for OpenCloud? Is the same code used for the Plain Text File function? So this would solve both use-cases.
AlexAndBear commentedon Oct 23, 2025
Actually we updated the package to have especially that feature. It helps big time when displaying b64 images. Honestly I would wait for a response from md-editor-v3 team
ccoles146 commentedon Oct 23, 2025
That is the response from the developer: imzbf/md-editor-v3#972 (comment)
Please can you add something on the issue explaining your thoughts because it is a real problem if you cannot read or edit any link longer that say 10 characters. But if by solving one problem you create another problem then it isn't really a solution. I don't know anything about b64 image argument.
ccoles146 commentedon Oct 24, 2025
@AlexAndBear ok, reading the comment more closely you can either turn it off or adjust the threshold, the default threshold is 30, although I counted it at 32. I think it is too short and probably something like 128 or more would be suitable especially as it is unexpected behaviour in an editor. If it could be exposed for the user to decide that would also be an acceptable solution. The exact parameter to change is here: https://imzbf.github.io/md-editor-v3/en-US/api/#%E2%8F%B2%20autoFoldThreshold . Thanks.
AlexAndBear commentedon Oct 24, 2025
Thank you for your research, I will have a closer look as soon as time permits 🙏
AlexAndBear commentedon Oct 24, 2025
@ccoles146 I created a PR which will shorten links, if they are longer than 120chars instead of 30. I also asked the developer of the editor if it will be possible to edit shorten links in the future
AlexAndBear commentedon Oct 24, 2025
@ccoles146 I also disabled this feature entireley for plain txt files. I think we are in a good state now.
Thanks for helping 👍