fourplusone / etherpad-plugins

Plugins for Etherpad Lite
MIT License
23 stars 29 forks source link

server side hook not run? #14

Closed clkao closed 11 years ago

clkao commented 11 years ago

ep_headings works fine for newly added headings. however if the content is being set by the setHTML API, the collectContentPre hook does not seem to be run and thus to existing headings are cleared.

to reproduce, start epl with ep_headings installed, create a pad call headings. then:

curl -d apikey=cat APIKEY.txt-d 'padID=headings' -d 'html=<div><h1>foo</h1><p>fofo<b>wer</b>sdf</div>' 'http://localhost:9001/api/1/setHTML'