Improve "URL" handling in markdown editor (#7006)
The button to insert an URL now opens a dialog prompting for the two components, the URL and the description. Any existing text selection is taken into account to pre-fill the description field. Closes: #6731  Co-authored-by: Otto Richter <otto@codeberg.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7006 Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: Lucas Schwiderski <lucas@lschwiderski.de> Co-committed-by: Lucas Schwiderski <lucas@lschwiderski.de>
This commit is contained in:
parent
3372db660c
commit
6dad457552
4 changed files with 114 additions and 1 deletions
|
@ -232,6 +232,11 @@ table_modal.placeholder.content = Content
|
|||
table_modal.label.rows = Rows
|
||||
table_modal.label.columns = Columns
|
||||
|
||||
link_modal.header = Add a link
|
||||
link_modal.url = Url
|
||||
link_modal.description = Description
|
||||
link_modal.paste_reminder = Hint: With a URL in your clipboard, you can paste directly into the editor to create a link.
|
||||
|
||||
[filter]
|
||||
string.asc = A - Z
|
||||
string.desc = Z - A
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue