-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextField does not handle <img> on platforms other than Flash #2684
Comments
It's worth mentioning that native platforms (windows/mac/linux, neko, hashlink) in OpenFL are generally implemented to behave the same as AIR. With that in mind, the html5 target would be the only one that should support the |
AIR has at least stated plans to support this tag in AIR 51 with domain whitelists for security: airsdk/Adobe-Runtime-Support#1242 Could there be a similar solution, or would this be a situation to wait for the actual API to be released? Also, does OpenFL provide any method of achieving the same effect? |
Looking over the code, as best I can tell, our |
Describe the bug
The
<img>
html tag is ignored on non-flash platformsTo Reproduce
Steps to reproduce the behavior:
<img src="openfl.png"/>
Expected behavior
OpenFL logo is displayed, text is wrapped around and able to be selected and interacted with as normal.
Screenshots
![image](https://private-user-images.githubusercontent.com/30361731/299486637-36999f4c-5983-4831-9e87-5feade607108.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjA3ODUsIm5iZiI6MTcyMDYyMDQ4NSwicGF0aCI6Ii8zMDM2MTczMS8yOTk0ODY2MzctMzY5OTlmNGMtNTk4My00ODMxLTllODctNWZlYWRlNjA3MTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDE0MDgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNTc5Njk2MDAxY2RmNGQ4MTNhZmY0ZThhY2I0NTAxYjI0NTg2NWM4ODY2MmZiMDBjNTY5MzA0YTMyNjI5N2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F_TcYz0ETG8qXm0ldoVXJY5zPvniDDeW3jaON7o-vCo)
![image](https://private-user-images.githubusercontent.com/30361731/299486894-ccae8716-eee2-42b5-9622-3f1f36092179.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjA3ODUsIm5iZiI6MTcyMDYyMDQ4NSwicGF0aCI6Ii8zMDM2MTczMS8yOTk0ODY4OTQtY2NhZTg3MTYtZWVlMi00MmI1LTk2MjItM2YxZjM2MDkyMTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDE0MDgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzNTUwYzQxNDRiYzczMGQ4ZTYyYzRiMzQ2MTg4NTkyZGI3MzU1NzcxYTAxYjVlMTMxYWIwNmQ0NThhZDllNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yl6gr5CP86NVeQaOA4hmNvndS08wLwQ8EcCHMiMzb78)
Flash result:
Linux result:
OpenFL Targets
Linux, Hashlink and any that use OpenFL's HTMLParser.
Additional context
The API documentation for TextField#htmlText lists the image tag as valid, with a noted exception for AIR.
The text was updated successfully, but these errors were encountered: