Open CsloudX opened 1 year ago
Url is supposed to be url and not some other strings, BBCode AFAICT doesn't support this (img in url)
[url=https://www.bbcode.org/images/lubeck.jpg][img]https://www.bbcode.org/images/lubeck_small.jpg[/img][/url]
This construct is supported by many BBCode implementations to create a clickable image.
O. TIL.
Downloading images automatically from URLs may be undesired in certain scenarios, so this shouldn't happen automatically.
Also, chances are this can be implemented using an add-on (RichTextEffect).
That's not at all what was asked here Calinou. My example pulls from BBCode for web usage. In this issues use case, the [img] already only requires support for local resources, and that is all that is desired here.
To be unmistakably clear:
The request is: Allow images and/or text to be used in [url], and in the case of an image, make it so that clicking the image opens the URL the same as if the URL had been in text form.
Sorry about my english was not good, thanks everyone, YES, my meaning was Allow making [img] clickable if wrapped within [url] in RichTextLabel
It like was supported in Godot4.3 dev6???
It like was supported in Godot4.3 dev6???
If it was implemented then this should be closed and a bug report for the regression should be opened, unless it was accidental that the feature was added
I accidentally tested it in 4.3dev6. it like was supported. but I don't know which pull was implement this. and I don't know was officially confirmed support for this feature
Describe the project you are working on
A dictonary app.
Describe the problem or limitation you are having in your project
I was create a dictionary app like this:![image](https://user-images.githubusercontent.com/35988767/193433193-38a086f1-553c-4d9e-8a3e-4fcf72b66914.png)
In place 1 and 2, I was used the
url
tag to detect user's operation:[url=ADD_TO_LIB]ADD_TO_LIB[/url]
[url=TTS]TTS[/url]
If I can use![image](https://user-images.githubusercontent.com/35988767/193433618-168de905-939c-456c-a09f-d2d1f4b74d69.png)
img
tag inurl
, it will look much better:[url=ADD_TO_LIB] [img] res://ADD.png [/img][/url]
[url=TTS] [img] res://TTS.png [/img] [/url]
But I found it can't trigger meta click.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Let
url
tag supportimg
tag in like can write bbcode like this:[url=ADD_TO_LIB] [img] res://ADD.png [/img][/url]
[url=TTS] [img] res://TTS.png [/img] [/url]
User can click the image to trigger meta click.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
[url=ADD_TO_LIB] [img] res://ADD.png [/img][/url]
[url=TTS] [img] res://TTS.png [/img] [/url]
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, I can't
Is there a reason why this should be core and not an add-on in the asset library?
It's core, can't be add-on.