mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
a270fc396d
The categories table holds all categories that exist OR have at one point existed. This means it also contains a lot of vandalism and other inappropriate names that happily come up in the suggestions. This is undesirable. This changes the query to only list categories with at least 1 entry. Though technically it can be argued that an empty category with an existing page might 'exist' and should thus be listed, with this change they won't be. I don't think that is terribly incorrect to say that such would be a 'new category', but we could also consider renaming the label in the suggestion list to say: 'Currently unused category' or something similar. As far as I can tell there is no way to test for page existance OR generate a list based on allcategories with one API query. Bug: 70025 Change-Id: I0e195d3ce26e69d4710d6a505b9da7d1b7678d92 |
||
---|---|---|
.docs | ||
bin | ||
build/tasks | ||
lib | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitmodules | ||
.gitreview | ||
.jscsrc | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
betafeatures-icon-VisualEditor-language-ltr.svg | ||
betafeatures-icon-VisualEditor-language-rtl.svg | ||
betafeatures-icon-VisualEditor-ltr.svg | ||
betafeatures-icon-VisualEditor-rtl.svg | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorDataModule.php |
VisualEditor
VisualEditor provides a visual editor for wiki pages. It is written in JavaScript and runs in a web browser.
It uses the Parsoid parser to convert wikitext documents to annotated HTML which the VisualEditor is able to load, modify and emit back to Parsoid at which point it is converted back into wikitext.
For more information about these projects, check out the VisualEditor and Parsoid pages on mediawiki.
Developing and installing
For information on installing VisualEditor on a local wiki, please see https://www.mediawiki.org/wiki/Extension:VisualEditor
For information about running tests and contributing code to VisualEditor, see CONTRIBUTING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.