вопрос
Здравствуйте, как сделать, что бы редактор не вырезал событие onclick?
HTML:
JS:
<div class="uppod-start" data-uppod-player-id="123456" data-uppod-event-name="play">play</div>
<div class="uppod-start" data-uppod-player-id="123456" data-uppod-event-name="pause">pause</div>
JS:
$(document).on('click', '.uppod-start', function(e) {
e.preventDefault();
var $this = $(this),
uppodPlayerID = $this.data('playerID'),
uppodEventName = $this.data('eventName');
uppodEvent(uppodPlayerID, uppodEventName);
});