Google transliteration code for search box input
2 posters
Page 1 of 1
Google transliteration code for search box input
- 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
Re: Google transliteration code for search box input
Locked as Requested
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Google Transliteration for Indian Languages not Working
» Google search
» Google Search
» Google search !?
» Google search
» Google search
» Google Search
» Google search !?
» Google search
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum