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.

Google transliteration code for search box input

2 posters

Go down

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

http://www.eegarai.net

Back to top Go down

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...
sivastar
sivastar
Forumember

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

http://www.eegarai.net

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51581
Reputation : 3526
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum