Last modified: 2014-05-16 18:40:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67409, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65409 - Wikieditor: In a toolbar button, display the label instead of the icon create an error
Wikieditor: In a toolbar button, display the label instead of the icon create...
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
REL1_22-branch
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-16 18:40 UTC by nikus0pokus
Modified: 2014-05-16 18:40 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description nikus0pokus 2014-05-16 18:40:24 UTC
I found that if I set a wrong or an empty value in the icon field of a toolbar button in the file « jquery.wikiEditor.toolbar.config.js » it displays the label instead of the icon.

'tt': {
    'label': 'tt',
    'type': 'button',
    'icon': 'noicon.jpg',
    'action': {
        'type': 'encapsulate',
        'options': {
            'pre': "<tt>",
            'post': "</tt>"
        }
    }
},

It is very useful because the text is well render comparing to text inside png icons. Svg icons have better rendering but it is easier to use the label than to create svg icons.
But if I use wrong or an empty value in the icon field, I have the following error:

[error] open() "/srv/http/mywiki/extensions/WikiEditor/modules/images/toolbar/noicon.jpg" failed (2: No such file or directory)

So, I would like to know how to display the label in a toolbar button without having the previous error.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links