Dear Friends
Is there any way to have a custom built editors?
I want to include 'google AJAX Language API' in the BBCodeEditor (http://code.google.com/apis/ajaxlanguage/documentation/)
i tried including the following code in the default.aspx root folder
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Google Transliteration API
google.load("elements", "1", {
packages: "transliteration"
});
function onLoad() {
var options = {
sourceLanguage: 'en', // or google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage: ['ta'], // or [google.elements.transliteration.LanguageCode.TAMIL],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
// Create an instance on TransliterationControl with the required
// options.
var control =
new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textfields with the given ids.
var ids = ["transl1"]; // should be the BBCodeEditor
control.makeTransliteratable(ids);
// Show the transliteration control which can be used to toggle between
// English and Tamil.
//control.showControl('translControl');
var ids = ["transl1"]; // should point to the the BBCodeEditor
I also need to active the below line to show a button for users to togggle between languages.
control.showControl('translControl');
Here's an example that shows what i am trying to achieve.
http://www.kural.co.uk/Forum/test.aspx Any help will be much appreciated.
Edited by user
14 years ago
|
Reason: Not specified