Move dialog for sections and content elements#2347
Merged
tf merged 7 commits intocodevise:masterfrom Jan 15, 2026
Merged
Conversation
REDMINE-21205
Allows moving sections and content elements to different positions via a dialog that displays the entry outline with clickable targets. REDMINE-21205
Add handleMove to textBlock content element type to allow moving selected text ranges (not just the entire element) to a different section. When handleMove is defined on a content element type, MoveContentElementMenuItem shows "Move selection..." label and delegates to handleMove instead of entry.moveContentElement. The MOVE_TO command handler in EditableText computes the bounds of the current selection and reuses existing postMoveContentElementMessage infrastructure. Extract computeBounds from Selection.js to shared module to remove duplication. Redmine: 21205
Display a helpful message when a storyline has no chapters, so users understand why no move destinations are available. Redmine: 21205
Adds clickable insert target to empty chapters in the move destination dialog. Extracts shared tooltip and insert line styles to a reusable CSS module. REDMINE-21205
When moving a content element via the menu action, the preview now scrolls to show the target location once the move completes. Uses 'nearStart' alignment when moving to beginning and 'nearEnd' when moving to end of section. REDMINE-21205
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
REDMINE-21205