Hi,
There are times when access to social media like youtube, vimeo is not allowed and the embedded videos do not play. Is there a way to upload a video directly in the topic? Does a plugin exist for this matter?
Any kind of help is appreciated.
Thank you in advance.
How to cancel topic submit?
Solved
General Discussion
-
Hi!
Continue of the topic: https://community.nodebb.org/topic/15842
I want to cancel topic submit, if a certain condition is not met.
How can this be done?
thanks!! -
$(window).on('action:composer.check', function (ev, payload) { if (span1.innerText === 'a') { payload.error = 'you cant post right now' } });
-
@baris said in How to cancel topic submit?:
and set payload.error.
How to set payload.error? Thank you!
this not work:$(window).on('action:composer.check', function (payload) { if (span1.innerText === 'a') { payload.error('test') } });
-
$(window).on('action:composer.check', function (ev, payload) { if (span1.innerText === 'a') { payload.error = 'you cant post right now' } });