[Pmwiki-users] Use buttons to ease edition

noe ooiuu
Tue Dec 21 09:36:03 CST 2004

pyg_listes a ?crit :

> Patrick R. Michaud wrote:
>> On Sun, Dec 19, 2004 at 07:40:24PM +0100, pyg_listes wrote:
>>> I've made this little hack (just for fun) : 
>>> http://pyg.keonox.com/wiki/pmwiki.php/Pyg/HomePage?action=edit
>>> (inspired from Wikepedia/docuWiki)
>>> Many more buttons may be added, I just don't have anymore time left 
>>> for a few days...
>>> Does it worth a Cookbook, or am I the only one who had lazy users ? ;)
>> I've been wanting to build something like this also, but just haven't
>> had time.  It's definitely worth a Cookbook -- depending on how it's
>> written I may also see about including it in the default distribution.
>> Pm
> Done : http://www.pmwiki.org/wiki/Cookbook/EditBar
> Sorry I didn't had enough time to make it better, but I'll be left for 
> a few days. If something does not work, just remove it from the 
> cookbook page, and I'll fix it when I return :-/
> pyg
Just tried this "editbar", it's fun. Just a few notes, if they could help ?:
in editbar.js,
  function insertTags(tagOpen, tagClose, sampleText) {     var txtarea = 
forms[0] doesn't work for me, maybe forms[0] is the searchbox in default 
skin ?

in editbar.php, $SkinDirUrl is replaced with "" if I view the html 
source on my browser, I don't know why.

in pmwiki.tmpl, language="javascript" should be replaced by 
type="text/javascript" told me htmltidy.

This patched it works fine.

More information about the pmwiki-users mailing list