Edgewall Software

Opened 10 years ago

Last modified 10 years ago

#11560 closed defect

Wiki toolbar should not show on disabled fields — at Initial Version

Reported by: Wladimir Palant Owned by:
Priority: normal Milestone: 1.0.2
Component: general Version: 1.1.1dev
Severity: normal Keywords: wikitoolbar
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

wikitoolbar.js currently contains the following initialization code:

$("textarea.wikitext").each(function() { addWikiFormattingToolbar(this) });

This will add the toolbar to all text fields, even the ones that have been disabled using BlackMagicPlugin. Disabled text fields shouldn't have this toolbar however. A simple change to the line above should do:

$("textarea.wikitext:not([disabled])").each(function() { addWikiFormattingToolbar(this) });

Change History (0)

Note: See TracTickets for help on using tickets.