Ticket #19 (closed enhancement: duplicate)

Opened 8 years ago

Last modified 5 years ago

Multiple plugin directories

Reported by: yermol Owned by: yermol
Priority: low Milestone: 0.95
Component: Xinha Core Version: unified_backend
Severity: normal Keywords:
Cc: mokhet@…

Description

Loading plugins from multiple separate plugins directories would be very useful; possibly using an optional directory parameter on the loadPlugin method. (does javascript support that kind of thing?)

Change History

Changed 8 years ago by yermol

  • priority changed from normal to low
  • version set to 0.1
  • severity changed from normal to enhancement

Changed 8 years ago by mokhet

  • cc mokhet@… added

i cant see why it would be usefull. There is a plugin structure, it can be discussed, but what can be the benefits to load a plugin from another directoy ?

Changed 8 years ago by gogo

  • owner changed from gogo to yermol
  • version changed from 0.1 to yermo

Moving to yermo's version.

Changed 8 years ago by gogo

  • version changed from yermo to unified_backend

Changed 7 years ago by guest

Hi there, I would love to see a feature like "configurable plugin directories". Hence it could be possible to write custom plugins AND keep them separate from the official plugins.

E.g. in my project I need a special plugin to insert links (e.g, to select links from a sitemap, also my links have special URL parameter etc.). I simply could create a MyLink?-plugin in the Xinha plugins folder. Still, this would mix project specific code with general code. Therefore, updating the Xinha installation be difficult.

I would prefere to have a Xinha installation in folder A and my project stuff in folder B with the plugin folder: B/myplugin. Then use HTMLArea-Config Object to say something like:

var cfg = new HTMLArea.Config();
cfg.addPluginDir( "coolProject", "B/myplugin" );

var plugins = [
  "HtmlTidy", // official plugin
  "coolProject/MyPlugin", // plugin located in "B/plugin"
  "coolProject/Another" 
];

// add plugins and initialize editor

AFAIK this would effect the following functions/methods:

HTMLArea.getPluginDir
HTMLArea.prototype.imgURL
HTMLArea.prototype.popupURL
HTMLArea.prototype._loadlang

regards, gERD

gerd (at) php-tools (dot) net

Changed 5 years ago by ray

  • milestone set to 0.96

Changed 5 years ago by ray

  • status changed from new to closed
  • resolution set to duplicate
  • milestone changed from 0.96 to 0.95
Note: See TracTickets for help on using tickets.