(已取代)插件教程 #3 - 如何在每个帖子后添加按钮?

Do this at the start of your .js.es6 file:

import PostMenuView from 'discourse/views/post-menu';

Then use PostMenuView as a global in the code.