1

How do I code a WMD plug-in for the Elgg framework?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Hick
  • 35,524
  • 46
  • 151
  • 243

1 Answers1

0

You should first study and understand views in Elgg. They are like blocks in Drupal, but have a wider context, like an include file. Elgg plug-ins now have a better structure, so you better go on with the newest version.

For the client-side JavaScript part, examine the TinyMCE related views, there you can see an example showing how to replace the text editor window. Then include your PHP functions in the plug-in's main file. Any initialization functions should be called in the init() function of your plug-in.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
DarkWingDuck
  • 2,028
  • 1
  • 22
  • 30