@baris Could you explain how I can do to send text as if it were the editor so that the composer does not throw error that it enters more than 0 characters?
sdantuoni
Posts
-
Send hardcoded text as composer textfield data -
Send hardcoded text as composer textfield dataHow can I send a fixed text as if it were what the user would enter in the textfield of the composer?
-
How to remove post submit restrictions?@julian Cool, and... How can we do what you suggest to send text if we remove the textfield in the composer template?
-
How to remove post submit restrictions?@julian You can reply this post? I need that for work.
-
How to remove post submit restrictions?@julian Yes, but this thing tells me to enter more than 0 characters.
I try send textfield with value=" " with whitespace but not recognize spaces as chars
-
How to remove post submit restrictions?@julian Yes, for reply, but no for Topic creation
If you use this variable in composer.tpl <!-- IF isTopicOrMain --> you can remove the textfield only for topic creation and no for reply
-
How to remove post submit restrictions?I need remove composer textfield, and i can remove this from the composer.tpl in my plugin, but where i try submit the topic, the NodeBB sendme a notification says: Please enter a longer post. Posts should contain at least 8 character(s).
How i can disable this verifications via my plugin?
-
How to add option in reply buttonI need add option in this button
I found this code for add that but in the composer when adding a post.
$(window).on('action:composer.loaded', function(err, data) { if (data.hasOwnProperty('composerData') && !data.composerData.isMain) { // Do nothing, as this is a reply, not a new post return; } var item_reply = $('<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button><ul class="dropdown-menu pull-right" role="menu"><li><a href="#" data-switch-action="post"><i class="fa fa-fw fa-book"></i> Responder historia</a></li></ul>'); var actionBar = $('#cmp-uuid-' + data.post_uuid + ' .action-bar'); item_reply.on('click', 'li', function() { $(window).off('action:composer.topics.post').one('action:composer.topics.post', function(ev, data) { callToggleQuestion(data.data.tid, false); }); }); actionBar.append(item_reply); });
Maybe this working if changue .action-bar for ?, really, the documentation for plugin development is very bad
Thanks for you time, and sorry for my bad english