Go to file
Robert Vogel 7047830bf3 MWMediaResultWidget: Fallback for 'images' without dimensions
When the MWMediaResultWidget receives a file that has no graphical
represenation (width:0 height:0) it uses minWidth of 30px for width of the
thumbnail.

This is, for example, the case with PDF files if the PdfHandler extension is
not active.

This patch solves the issue by falling back to the thumbwidth/thumbheight
values if width/height are 0.

Change-Id: I6bdaf1aafc0c45e26d31cd9dd9504e193f04e717
2015-08-14 19:40:48 +00:00
.jsduck Update VE core submodule to master (d3d2293) 2015-08-11 08:43:27 -07:00
bin Merge "Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too" 2015-04-29 00:58:51 +00:00
build/tasks
lib Update VE core submodule to master (d3d2293) 2015-08-11 08:43:27 -07:00
modules MWMediaResultWidget: Fallback for 'images' without dimensions 2015-08-14 19:40:48 +00:00
.csslintrc Transform the search widget to show image details 2015-01-16 13:22:54 +00:00
.gitignore Add a couple of patterns to .gitignore for emacs 2015-05-13 19:11:05 -04:00
.gitmodules
.gitreview
.jscsrc build: Drop last jscs over-ride and make pass 2015-07-22 15:13:09 -07:00
.jshintignore
.jshintrc jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00
.mailmap mailmap: Add an additional e-mail for Bartosz per request 2015-05-31 13:04:29 -07:00
.rubocop.yml [BrowserTest] RuboCop should not complain about number of lines in a method 2014-11-21 16:57:27 +00:00
.rubocop_todo.yml [BrowserTest] Remove outdated offenses from .rubocop_todo.yml 2015-02-20 13:39:18 +02:00
ApiVisualEditor.php Revert "Revert "Replace wgVisualEditorNamespaces with an associative array"" 2015-08-02 23:13:24 +01:00
ApiVisualEditorEdit.php mw.Target: Add jsconfigvars and modules to the save mechanism 2015-08-04 19:00:09 -07:00
AUTHORS.txt Update AUTHORS.txt, $wgExtensionCredits and .mailmap based on git shortlog 2015-03-26 11:05:02 -07:00
betafeatures-icon-VisualEditor-ltr.svg
betafeatures-icon-VisualEditor-rtl.svg
composer.json build: Updating development dependencies 2015-06-19 23:32:37 +02:00
CONTRIBUTING.md
extension.json Update VE core submodule to master (d3d2293) 2015-08-11 08:43:27 -07:00
Gemfile [BrowserTest] Update the commons_upload gem 2015-06-19 13:19:33 +03:00
Gemfile.lock [BrowserTest] Update the commons_upload gem 2015-06-19 13:19:33 +03:00
Gruntfile.js Follow-up 8b7b20b9: Add new i18n directory to banana testing 2015-07-18 09:30:01 -05:00
jsduck.json build: Move pre/post 'doc' task into package.json 2015-04-06 17:18:29 +01:00
LICENSE.txt build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
package.json build: Configure jsonlint 2015-06-13 01:14:38 -07:00
README.md README: Add devDependencies badge 2014-09-16 13:39:31 -07:00
VisualEditor.hooks.php Only add tab on the server-side if we're in a VE-namespace 2015-08-11 01:33:11 +01:00
VisualEditor.php Re-do: Empty out PHP entry point 2015-07-02 01:50:57 +00:00
VisualEditorDataModule.php Remove use of deprecated wfRunHooks 2015-08-06 19:09:19 +01: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.