The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Google transliteration code for search box input

    sivastar
    sivastar
    Forumember


    Male Posts : 152
    Reputation : 16
    Language : Tamil
    Location : Malaysia

    Google transliteration code for search box input Empty Google transliteration code for search box input

    Post by sivastar January 8th 2023, 4:46 pm

    Code:
    <script src="https://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript">
      google.load('elements', '1', {
        packages: 'transliteration'
    });
     
    google.setOnLoadCallback(function () {
        $(function () {
        // This should hopefully cause all the other DOM ready
        // events to be run before this one including the one
        // that initialises SCEditor
        setTimeout(function () {
            // Cludge to add id's to sceditor inputs
            $('.sceditor-container iframe').attr('id', 'sceditor-iframe');
            $('.sceditor-container textarea').attr('id', 'sceditor-textarea');

            var ids = ['sceditor-iframe', 'sceditor-textarea'];
            var options = {
                sourceLanguage: 'en',
                destinationLanguage: ['ta'],
                shortcutKey: 'alt+g',
                transliterationEnabled: true
            };
     
            var control = new google.elements.transliteration.TransliterationControl(options);
            control.makeTransliteratable(ids);
        });
        });
    });
     

    This Google transliteration code now working in Sceditor textarea.
    help me to add this code to fa search, gcs search, login input and new topic title inputbox.

    My forum: https://eegarai.darkbb.com
    sivastar
    sivastar
    Forumember


    Male Posts : 152
    Reputation : 16
    Language : Tamil
    Location : Malaysia

    Google transliteration code for search box input Empty Re: Google transliteration code for search box input

    Post by sivastar January 21st 2023, 7:56 am

    I have fixed this. please lock this post...
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Google transliteration code for search box input Empty Re: Google transliteration code for search box input

    Post by SLGray January 21st 2023, 8:19 am

    Locked as Requested



    Google transliteration code for search box input Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 23rd 2024, 1:17 pm