If text isn't highlighted, attempt to link fails.
| Project: | HTMLBox |
| Version: | 5.x-1.0-beta2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Poetro |
| Status: | active |
Jump to:
I don't know if this is a bug so much as it is unclear workflow.... but if you were to go to a text area with HTMLBox enabled, not highlight any text to link, and then click on the "Link" button, it prompts you to enter in a URL and then it disappears into thin air.
I've seen this handled several different ways with WYSIWYG editors (not in any particular order of preference, just throwing out options I've seen)...
1. Graying out and disabling the ability to link if no text in the text area is highlighted.
2. Prompting for the URL, then if no text is selected using the URL as the link text.
3. Prompting for the URL, then if no text is selected, a second prompt for the text of the URL, if left blank then the link text being the URL.

#1
I think i'll go with the 2nd solution, but i see what the available variables are for that one.