nextcloud / nextcloud/text

Feature request: multiline image caption

Open
#9,052 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Current situation:

  • Images pasted from the clipboard receive a default caption containing the filename. The caption text may be edited. The caption appears in the printed layout.
  • The caption ist rendered as a HTML <input> field. Word-wrapping to a second line is not possible. Newlines are not possible either.

Feature Request: Multiline captions

  • enable multiline captions

Alternatives:

  • Manual alternative: Remove the text in the input tag and add a paragraph below the image.
    • There's no meta information that this is a caption
    • Margins between image and fake-caption my not be controlled
  • Use a <textarea>Tag:
    • The <textarea> rendered height must be adapted on the fly while typing and before printing.
  • Establish a text block type named «caption» in the brackets menu. Insert this text block containing the filename, instead of the <input> Tag. Allow the section to be deleted or converted to a normal paragraph (as always).
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified in the issue. Start by locating the image-caption HTML input and the printed-layout handling, then compare the textarea and caption text-block alternatives. Done means captions support wrapping and newlines, resize while editing and before printing, and retain the intended caption behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.