Go to file
Bartosz Dziewoński 9be5c85db4 Provide a tool to insert a signature in namespaces that need it
VisualEditor is usually not enabled in talk namespaces... but
sometimes it is. And when users see the button to edit with VE,
they're going to click it and expect to be able to sign their posts.

This tool is only loaded on talk pages and pages in additional
namespaces defined in $wgExtraSignatureNamespaces.

Code adapted with small tweaks from my own gadget
<https://meta.wikimedia.org/wiki/User:Matma_Rex/visualeditor-signature.js?oldid=13461327>,
which is already available under the MIT license.

Changes include:
* The tool is now always visible if the wiki allows signatures in any
  VE namespaces, but disabled when not allowed in the current namespace.
* Register '~~~~' sequence to insert the signature.
* Code style tweaks for stricter lint checks in this repository.
* Documentation corrections.

Swedish translation provided by André Costa (already credited
as a translator as Lokal_Profil).

Depends on changes in VisualEditor core:
* I89fe53890ab59d12260ea6b41de802c38c24e8b9
* I14cd7efac521687ea38580341ae08ddc522edeeb

Bug: T53154
Change-Id: I6be5fb2118cf3eef5098d4c5320228aa81411ccb
2015-11-16 18:06:32 +01:00
.jsduck Update VE core submodule to master (77d786a) 2015-11-11 12:35:53 -08:00
bin Merge "Add a clean-up script for use as a pre-commit hook" 2015-09-14 00:33:31 +00:00
build/tasks build: Enable jscs rule 'requireVarDeclFirst' and make pass 2015-08-19 11:05:01 -07:00
lib Update VE core submodule to master (77d786a) 2015-11-11 12:35:53 -08:00
modules Provide a tool to insert a signature in namespaces that need it 2015-11-16 18:06:32 +01:00
.csslintrc
.gitignore Add a couple of patterns to .gitignore for emacs 2015-05-13 19:11:05 -04:00
.gitmodules
.gitreview
.jscsrc build: Enable jscs jsDoc rules 'require*Types' and make pass 2015-08-19 11:38:35 -07:00
.jshintignore
.jshintrc jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00
.mailmap AUTHORS: Update for October 2015 2015-10-29 15:02:04 -04:00
.rubocop.yml
.rubocop_todo.yml
ApiVisualEditor.php ApiVisualEditor: Return the correct notice when user is not allowed to create page 2015-11-05 04:02:42 +01:00
ApiVisualEditorEdit.php Allow switching from wikitext to VE 2015-11-02 20:55:19 +00:00
AUTHORS.txt AUTHORS: Update for October 2015 2015-10-29 15:02:04 -04:00
autodisablePref.php More autodisable script fixes 2015-09-30 22:08:37 +01:00
betafeatures-icon-VisualEditor-ltr.svg
betafeatures-icon-VisualEditor-rtl.svg
composer.json build: Upgrade mediawiki-codesniffer from v0.4.0 to v0.5.0 2015-10-23 08:41:19 -07:00
CONTRIBUTING.md Add a clean-up script for use as a pre-commit hook 2015-07-03 01:57:03 +00:00
extension.json Provide a tool to insert a signature in namespaces that need it 2015-11-16 18:06:32 +01:00
Gemfile [BrowserTest] Screenshot gem version updated to 0.0.7 2015-09-25 21:51:44 +00:00
Gemfile.lock [BrowserTest] Screenshot gem version updated to 0.0.7 2015-09-25 21:51:44 +00:00
Gruntfile.js Make jsonlint ignore more node_modules 2015-10-29 12:26:47 -05:00
jsduck.json build: Move pre/post 'doc' task into package.json 2015-04-06 17:18:29 +01:00
LICENSE.txt
package.json build: Updating development dependencies 2015-10-11 12:21:37 -04:00
phpcs.xml build: Alter settings to force utf-8 and allow .php5/.inc extensions 2015-09-28 23:11:06 +00:00
Rakefile Added Rakefile 2015-11-10 10:24:39 +00:00
README.md
VisualEditor.hooks.php Provide a tool to insert a signature in namespaces that need it 2015-11-16 18:06:32 +01:00
VisualEditor.php Re-do: Empty out PHP entry point 2015-07-02 01:50:57 +00:00
VisualEditorDataModule.php Remove redundant VisualEditorDataModule::getGitHeadHash static cache 2015-11-10 01:06:33 +00:00
VisualEditorDesktopArticleTargetInitModule.php [BREAKING CHANGE] Rename (View|Mobile)PageTarget to (Desktop|Mobile)ArticleTarget 2015-07-29 18:26:36 +01:00

devDependency Status

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.