- 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