feat(docs): visual-editor selection for Wiki.js pages #190

Merged
haydar merged 1 commit from feat/docs-visual-editor into develop 2026-10-31 15:36:08 +00:00
Member

Wiki.js 3 beta.628 ships a Visual editor (ProseMirror WYSIWYG) that
stores markdown source, interchangeable with the markdown editor.

  • Create flow: DocsWorkspaceController::createDocument and
    DocsHierarchyService accept an 'editor' param (markdown|visual,
    default markdown) propagated to WikiJsClient::createPage; the
    theme's New Document dialog offers an Editor select defaulting to
    'Visual Editor — recommended'. The /_edit/{path} redirect opens
    whichever editor the page's stored field names.
  • Existing pages: opt-in 'Change editor…' tree action ->
    PUT /api/v1/docs/{org}/projects/{project}/pages/editor ->
    Wiki.js PUT /sites/{id}/pages/{id}/editor. Only editors sharing a
    content type are interchangeable, so nothing is rewritten; Wiki.js
    records the switch as an ordinary page version. No auto-conversion.
  • MCP: wikijs.pages.get reports editor/content_type/convertible_to;
    pages.create accepts editor; pages.update refuses content writes on
    pages whose contentType is not markdown with unsupported_format —
    visual pages store markdown and remain writable.
  • Bootstrap converges editors.visual.isActive so the editor is
    verifiably enabled on every site.
Wiki.js 3 beta.628 ships a Visual editor (ProseMirror WYSIWYG) that stores markdown source, interchangeable with the markdown editor. - Create flow: DocsWorkspaceController::createDocument and DocsHierarchyService accept an 'editor' param (markdown|visual, default markdown) propagated to WikiJsClient::createPage; the theme's New Document dialog offers an Editor select defaulting to 'Visual Editor — recommended'. The /_edit/{path} redirect opens whichever editor the page's stored field names. - Existing pages: opt-in 'Change editor…' tree action -> PUT /api/v1/docs/{org}/projects/{project}/pages/editor -> Wiki.js PUT /sites/{id}/pages/{id}/editor. Only editors sharing a content type are interchangeable, so nothing is rewritten; Wiki.js records the switch as an ordinary page version. No auto-conversion. - MCP: wikijs.pages.get reports editor/content_type/convertible_to; pages.create accepts editor; pages.update refuses content writes on pages whose contentType is not markdown with unsupported_format — visual pages store markdown and remain writable. - Bootstrap converges editors.visual.isActive so the editor is verifiably enabled on every site.
feat(docs): visual-editor selection for Wiki.js pages
All checks were successful
ci / commit-trailers (pull_request) Successful in 11s
ci / secret-scan (pull_request) Successful in 13s
ci / release-tests (pull_request) Successful in 1m24s
ci / portal-frontend (pull_request) Successful in 42s
ci / integrations-js (pull_request) Successful in 25s
ci / openproject-spec (pull_request) Successful in 36s
ci / portal-php (pull_request) Successful in 6m26s
ci / openproject-rspec (pull_request) Successful in 5m6s
887133981d
Wiki.js 3 beta.628 ships a Visual editor (ProseMirror WYSIWYG) that
stores markdown source, interchangeable with the markdown editor.

- Create flow: DocsWorkspaceController::createDocument and
  DocsHierarchyService accept an 'editor' param (markdown|visual,
  default markdown) propagated to WikiJsClient::createPage; the
  theme's New Document dialog offers an Editor select defaulting to
  'Visual Editor — recommended'. The /_edit/{path} redirect opens
  whichever editor the page's stored field names.
- Existing pages: opt-in 'Change editor…' tree action ->
  PUT /api/v1/docs/{org}/projects/{project}/pages/editor ->
  Wiki.js PUT /sites/{id}/pages/{id}/editor. Only editors sharing a
  content type are interchangeable, so nothing is rewritten; Wiki.js
  records the switch as an ordinary page version. No auto-conversion.
- MCP: wikijs.pages.get reports editor/content_type/convertible_to;
  pages.create accepts editor; pages.update refuses content writes on
  pages whose contentType is not markdown with unsupported_format —
  visual pages store markdown and remain writable.
- Bootstrap converges editors.visual.isActive so the editor is
  verifiably enabled on every site.
haydar scheduled this pull request to auto merge when all checks succeed 2026-10-31 15:29:27 +00:00
haydar merged commit 50803fa0c7 into develop 2026-10-31 15:36:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
developing4all/devworkbase!190
No description provided.