1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How call XenForo.StatusEditor inside js file

Discussion in 'XenForo Development Discussions' started by Fuhrmann, Nov 27, 2011.

  1. Fuhrmann

    Fuhrmann Well-Known Member

    How can I call to XenForo.StatusEditor inside my own js file?

    I have a function that inserts content into a text area that uses the XenForo.StatusEditor. After I insert the text via jquery, I have to update the char limit of this text area using the XenForo.StatusEditor.

    But I just do not know how can I use and call the function update().
  2. Fuhrmann

    Fuhrmann Well-Known Member

    Ok, this works:

    new XenForo.StatusEditor($('#review_text')).update();
    But is this the right way? I mean...there is already a instance of XenForo.StatusEditor running since I loaded the page...

Share This Page