Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Conversation

@TomMalbran
Copy link
Contributor

This was a change commented in #2108

Now that batchOperation doesn't break the undo for multiple replace operations, is better that commenting just places the prefix and suffix, and not do only 1 replace with the content inside the selection plus the prefix and suffix. This pull fixes this.

@ghost ghost assigned peterflynn Nov 19, 2012
@peterflynn
Copy link
Member

Thanks Tom, looks good! Merging...

peterflynn added a commit that referenced this pull request Nov 21, 2012
Changing Block-Comment so that it inserts text at start & end instead of replacing the whole selected range.
@peterflynn peterflynn merged commit 2950894 into adobe:master Nov 21, 2012
@peterflynn
Copy link
Member

And this does indeed have a more gentle touch with bookmarks: if you open the new color editor on a color in CSS, you can now select a range of text on both sides of the colorpicker and comment/uncomment it without causing the colorpicker to close itself.

@TomMalbran
Copy link
Contributor Author

Thanks. This was my first implementation (but not committed), abut then changed it to fix the undo problem, no knowing about the bookmarks. But now, this seems much better.

peterflynn added a commit that referenced this pull request Dec 14, 2012
…e line

comments differently), #2133 (single-line block comment mode when Line
Comment invoked in CSS/HTML/etc. - enable test coverage), and #2148 (don't
replace whole selection - which means tests must work around #2335).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants