discourse/plugins/discourse-details/assets/javascripts/initializers/apply-details.js.es6

12 lines
234 B
Plaintext
Raw Normal View History

import { withPluginApi } from 'discourse/lib/plugin-api';
2015-11-30 18:32:01 +08:00
export default {
name: "apply-details",
initialize() {
withPluginApi('0.1', api => {
api.decorateCooked($elem => $("details", $elem).details());
});
2015-11-30 18:32:01 +08:00
}
};