BuddyDev

Search

[Resolved] BuddyBlog/BuddyPress Simple Front End Post – Min and Max characters – TinyMCE

  • Participant
    Level: Enlightened
    Posts: 56
    John B on #34377

    I’ve been able to specify the maximum number of allowed characters in all of my input forms expect for the BuddyPress Simple Front End Post TinyMCE input form.

    Normally I create a JS with the following code.

    jQuery('input#field_1').attr('maxlength', '14');

    I can’t seem to find a way to target the TinyMCE input form.

    I’ve trried the following code and multiple other attempts with no success.

    jQuery('body#tinymce').attr('maxlength', '2000');

    Is it possible to force or limit the number of characters when posting a blog article? If so, can you please point me in the right direction?

    Thanks as always. J.C>

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #34381

    Hi John,
    Thank you for the question.
    Tinymce enabled areas are different than the normal text area and you will need to work with Tinymce API for the same.

    Here is what they suggest

    https://www.tiny.cloud/docs-3x/howto/words/

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 56
    John B on #34425
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #34428
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 56
    John B on #34431

    That fixed it. Thank you!!!!!!!!!!!!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #34436

    Hi John,

    Thank you for the reply and confirming.

    Regards
    Brajesh

The topic ‘ [Resolved] BuddyBlog/BuddyPress Simple Front End Post – Min and Max characters – TinyMCE’ is closed to new replies.

This topic is: resolved