## Implementation Plan: Dynamic Comment Max Length via Env Config ### Files to Modify | # | File | Change | |---|------|--------| | 1 | `devplacepy/config.py` | Add `COMMENT_MAX_LENGTH = int(environ.get("DEVPLACE_COMMENT_MAX_LENGTH", "1000"))` | | 2 | `devplacepy/templating.py` | Inject `comment_max_length` as a Jinja2 global: `from devplacepy.config import COMMENT_MAX_LENGTH` and add to `globals` dict | | 3 | `devplacepy/models.py` | Replace `max_length=1000` in `CommentForm.content` (line 160) and `CommentEditForm.content` (line 175) with `max_length=COMMENT_MAX_LENGTH` (import from config) | | 4 | `devplacepy/templates/_comment_form.html` | Change `maxlength="1000"` to `maxlength="{{ comment_max_length }}"` | | 5 | `devplacepy/static/js/CommentManager.js` | In the inline-edit textarea creation (lines 81-86), add `textarea.maxLength = ...` reading from a data attribute (e.g., `data-maxlength` on the nearest container) or from a global JS variable set in the template. For simplicity, pass `comment_max_length` via a hidden element or a `data-maxlength` on the `