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

XF 1.3 Avro Phonetic Issue

Discussion in 'Styling and Customization Questions' started by Barbossa, Jul 14, 2014.

  1. Barbossa

    Barbossa Active Member

    Hi guys, I am trying to enable Avro Phonetic in all textboxes & textareas with default mode set to English. I tried to put this code into my PAGE_CONTAINER. But it's not working. Needless to say I did change the .js path accordingly.

    Code:
    <script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        $(function(){
            $('textarea, input[type=text]').avro({'bangla':false});
        });
    </script>
    Any idea guys? :)
     
  2. nttruong

    nttruong Member

    remember put it on <head> </head>
     
  3. Barbossa

    Barbossa Active Member

    Did so, no luck so far. :(
     
  4. katsulynx

    katsulynx Well-Known Member

    There is no need to put a Javascript inside the head-tag. It even is adviced by now to put it at the end of the document as this will speed up loading time of the page.
    Beside that, the default Xenforo-Editor is not an input nor a textarea, so if you want it to work there, you'll need to add the right class for that.
     
    Barbossa likes this.
  5. Barbossa

    Barbossa Active Member

    What that class would be?
     
  6. katsulynx

    katsulynx Well-Known Member

    I'm actually not sure if it works at all like that, as of the structure and nature of the redactor-editor. You'll either have to ask the technical admin for that or either the redactor or avro-team.
     
    Barbossa likes this.
  7. Barbossa

    Barbossa Active Member

    At least, I am looking for quick reply & also for opening a new thread. Still no luck for exact class. :(

    @Jake Bunce
     
    Last edited: Jul 15, 2014

Share This Page