Skip to content

feat: Implement file upload functionality in RichTextEditor with support for .docx, .odt, and .txt formats (#1369)#1382

Open
MrDirkelz wants to merge 4 commits intomainfrom
1381-cms-add-file-uploading-to-editcontent-text-area
Open

feat: Implement file upload functionality in RichTextEditor with support for .docx, .odt, and .txt formats (#1369)#1382
MrDirkelz wants to merge 4 commits intomainfrom
1381-cms-add-file-uploading-to-editcontent-text-area

Conversation

@MrDirkelz
Copy link
Collaborator

  • Added useFileUpload composable for handling file uploads and text extraction.
  • Integrated file upload triggers and drag-and-drop support in RichTextEditor component.
  • Updated package.json and package-lock.json to include jszip and mammoth dependencies.
  • Created unit tests for useFileUpload composable to ensure functionality.

…ort for .docx, .odt, and .txt formats (#1369)

- Added useFileUpload composable for handling file uploads and text extraction.
- Integrated file upload triggers and drag-and-drop support in RichTextEditor component.
- Updated package.json and package-lock.json to include jszip and mammoth dependencies.
- Created unit tests for useFileUpload composable to ensure functionality.
@MrDirkelz MrDirkelz linked an issue Mar 17, 2026 that may be closed by this pull request
MrDirkelz and others added 3 commits March 17, 2026 08:30
…ter sanitization

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Comment on lines +35 to +42
return contentXml
.replace(/<text:line-break[^>]*\/?>/gi, LINEBREAK)
.replace(/<text:tab[^>]*\/?>/gi, "\t")
.replace(/<text:p[^>]*>/gi, PARA)
.replace(/<\/text:p>/gi, ENDPARA)
.replace(/<text:h[^>]*>/gi, PARA)
.replace(/<\/text:h>/gi, ENDPARA)
.replace(/<[^>]*>/g, "")

Check failure

Code scanning / CodeQL

Incomplete multi-character sanitization High

This string may still contain
<script
, which may cause an HTML element injection vulnerability.

Copilot Autofix

AI 9 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMS: Add file uploading to EditContent text area

1 participant