ProfessionalWiki / ProfessionalWiki/Maps

Add CodeEditor support for GeoJson pages

Open
#816 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
78
Forks
65
Avg merge
9h 17m
Merged PRs (30d)
6

Description

If the Code Editor extension is enabled, it should be possible to use it to edit GeoJson pages instead of the default plaintext editor.

The Template Styles extension implements this like so: https://github.com/wikimedia/mediawiki-extensions-TemplateStyles/blob/master/includes/CodeEditorHooks.php

Could such a solution be implemented in the Maps extension?

Contributor guide

No contributing guide indexed for this repository

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

Read TemplateStyles' includes/CodeEditorHooks.php for the referenced integration pattern, then locate how the Maps extension handles GeoJson page editing. Verify the behavior with CodeEditor enabled and disabled: GeoJson pages should use CodeEditor when available and the plaintext editor otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.