discourse/plugins/poll/assets/javascripts/poll_bbcode.js

10 lines
234 B
JavaScript
Raw Normal View History

2014-02-04 21:53:09 -05:00
Discourse.Dialect.inlineBetween({
start: '[poll]',
stop: '[/poll]',
rawContents: true,
emitter: function(contents) {
var list = Discourse.Dialect.cook(contents, {});
return ['div', { class: 'poll-ui' }, list];
2014-02-04 21:53:09 -05:00
}
});