Hey,
I too want to add a button to the toolbar but have some difficulties with it.
fyi: I just started to work with Dokuwiki, so I just installed it on my localhost to use it as a playground. oh and no, I know nothing about php so please be forgiving with me
Yesterday I tried to add a new button to the toolbar for a new line
array(
'type' => 'insert',
'title' => 'newline',
'icon' => 'newline.png',
'insert' => '\\ \n',
'block' => true
),
When I tried it out on my Dokuwiki it only gave out one backslash and the line break (\n), can someone detect why it won't give out both?
Second problem: Since this wasn't working I changed the '\\ \n' to 'asdf' to see if it's working, it didn't gave out
asdf yesterday, so I gave up on it. Today, I changed the 'asdf' again to a '\\' guess what happens when I click on the button now – it types
asdf instead of the '\\' that are in the array, I just checked it again to see if it actually is there and I didn't forget to save it. I cleared the cache, it still gives out 'asdf'.
It would be awesome if someone could help me with this ridiculous problem.
aha