Ticket #1555 (closed defect: fixed)
DoubleClick plugin vs Xinha.Config.dblclickList
| Reported by: | ejucovy | Owned by: | ejucovy |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.97 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In r1256 a Xinha.Config.dblclickList option was created:
this.dblclickList =
{
"a": [function(e, target) {e._createLink(target);}],
"img": [function(e, target) {e._insertImage(target);}]
};
This functionality already existed, as the DoubleClick plugin:
http://trac.xinha.org/browser/trunk/plugins/DoubleClick/DoubleClick.js#L38
The differences are:
- The DoubleClick plugin attaches its configuration to the Xinha editor object itself, instead of config. This now goes against Xinha's best practices.
- The DoubleClick plugin requires a plugin to be installed (obviously)
- The DoubleClick plugin uses the name dblClickList. The new core config uses the name dblclickList (note the case difference).
I think the DoubleClick plugin should be deprecated and moved to the unsupported_plugins directory, and it should issue a warning if used. The warning should direct users to the new Xinha.Config.dblclickList option.
(See #1485)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
