-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Text raw tag editor / Copy-paste tags #6302
Conversation
(Reverts: #6211, #5070, #5024) The old code allows users to circumvent the readonly tag protection see #6185 (comment) We'll offer a text-mode instead, with stricter checks on which keys can be modified.
(possibly re: #6289)
modules/ui/raw_tag_editor.js
Outdated
.merge(textarea); | ||
|
||
textarea | ||
.attr('rows', rowData.length + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we disable spell checking and autocorrect? Safari’s autocorrect is pretty aggressive inside textareas, and the 〰️ underlines get pretty annoying with raw tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does iD have code already that is able to resize the height of an textarea based on its content? (Like https://css-tricks.com/textarea-tricks/#article-header-id-6) I would not add it just for this element (it's quite a bit of JS just for this**), but if it only needs to be "activated" for this textarea, it would be nice for the last bit of the GIF where the text area has a scrollbar. |
keys or values can be quoted or unquoted: - leisure=park - leisure="park" - "leisure"=park - "leisure"="park"
This is good enough to merge now.. |
Some folks add new line characters in the description: https://www.openstreetmap.org/way/463013906 Would this work as is? |
Yep, that's handled in 16ec257 |
ok, looks good, newline got replaced by an I found one issue with two rows having the same key: one of them gets silently discarded when I switch back to the list.
Merging them into one entry with semicolon as a separator might be an option, dunno. |
I think the preferred behavior would be to overwrite the old value, if any. |
It just keeps whichever is the last one in the list. I'm ok with this, since I'd expect people to paste their new values at the end of the list. |
This change adds ability to toggle between the list view and a text view of tags, so that people can make faster tag edits or copy/paste tags.
closes #6185
closes #839