Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
563 views
in Q2A Core by
Can I use this editor? please help.

how to use.

<script type="text/javascript">
function writeHTMLasJS(){
document.write("<html><head><meta http-equiv=\"content-type\" content=\"text\/html; charset=UTF-8\"><meta name=\"viewport\" id=\"iphone-viewport\" content=\"width=320; maximum-scale=1.0; minimum-scale=1.0; initial-scale=1.0; user-scalable=no\" \/><style type=\"text\/css\">");
document.write("body,td,div,span,p{font-family:arial,sans-serif;}a {color:#00c }a:visited { color:#551a8b; }a:active { color:#f00 }body {margin: 0;padding: 0;   background-color: white   }<\/style><\/head><body style=\"-webkit-text-size-adjust:none\"><script src=\"http:\/\/www.ig.gmodules.com\/gadgets\/js\/rpc.js?container=ig&amp;nocache=0&amp;debug=0&amp;c=1&amp;v=c9c4e4be4c94f814a439d6c24f88d657&amp;sv=4\"><\/script><script>var FLAG_use_rpc_js = true;<\/script><script src=\"\/ig\/extern_js\/f\/CgJlbisw8gE4ACwrMP4BOAAsaAF4AYABAZACzrjLCQ\/RZimOen5ru4.js\"><\/script><script>gadgets.rpc.setRelayUrl('..', '\/ig\/ifpc_relay');<\/script><script>function sendRequest(iframe_id, service_name, args_list, remote_relay_url,callback, local_relay_url) {_IFPC.call(iframe_id, service_name, args_list, remote_relay_url, callback,local_relay_url);}function _IFPC_SetPref(key, value) {throw new Error('To use this feature, you must add ' +'<Require feature=\"setprefs\"\/> to your ' +'<ModulePrefs> tag.');}");
document.write("function _IG_SetTitle(title) {throw new Error('To use this feature, you must add ' +'<Require feature=\"settitle\"\/> to your ' +'<ModulePrefs> tag.');}function _IG_AdjustIFrameHeight() {throw new Error('To use this feature, you must add ' +'<Require feature=\"dynamic-height\"\/> to your ' +'<ModulePrefs> tag.');}");
document.write("var gv = null;if (window.gadgets && window.gadgets.views) {var errFunc = function() {throw new Error('To use this feature, you must add ' +'<Require feature=\"views\"\/> to your ' +'<ModulePrefs> tag.');};gv = window.gadgets.views;gv.requestNavigateTo = gv.getCurrentView = gv.getParams = errFunc;}");
document.write("<\/script><script>_et='';_IG_Prefs._parseURL('0');<\/script><script>_IG_Prefs._addAll(\"0\", [[\"up_.lang\",\"en\"],[\"up_.country\",\"us\"],[\"up_synd\",\"ig\"]]);if (window._isk) {window._isk[0] = \"-7571590181224368538\";}<\/script><!-- Create your own Google Gadgets: http:\/\/code.google.com\/apis\/igoogle\/ --><div id=\"remote_0\" style=\"border:0;padding:0;margin:0;width:100%;height:auto;overflow:hidden\">");
document.write("<link href=http:\/\/www.google.com\/uds\/modules\/elements\/transliteration\/api.css rel=stylesheet type=text\/css \/>");
document.write("<script src=http:\/\/www.google.com\/jsapi><\/script>");
document.write("<script src=http:\/\/www.google.com\/uds\/api\/elements\/1.0\/d30ecdd732bad6c383b3e12db7cf503d\/transliteration.I.js><\/script>");
document.write("<script>google.load(\"elements\",\"1\",{");
document.write("packages:\"transliteration\"");
document.write("});function onLoad(){");
document.write("var options={");
document.write("sourceLanguage:");
document.write("google.elements.transliteration.LanguageCode.ENGLISH,");
document.write("destinationLanguage:");
document.write("google.elements.transliteration.LanguageCode.TAMIL,");
document.write("shortcutKey:'ctrl+g',");
document.write("transliterationEnabled:true");
document.write("};var control=");
document.write("new google.elements.transliteration.TransliterationControl(options);control.makeTransliteratable(['transliterateTextarea']);}");
document.write("google.setOnLoadCallback(onLoad);<\/script>");
document.write("<script>function Button1_onclick()");
document.write("{");
document.write("var x=document.getElementById(\"transliterateTextarea\");x.value=\"\";x.focus();}");
document.write("");
document.write("<\/script>");
document.write("<table cellpadding=0 cellspacing=0 style=\"width: 366px\">");
document.write("<tr>");
document.write("");
document.write("<td align=center style=\"color: gray\">");
document.write("");
document.write("<\/td>");
document.write("<tr>");
document.write("<td colspan=2>");
document.write("<textarea id=transliterateTextarea style=width:530px;height:175px><\/textarea><\/td>");
document.write("<tr>");
document.write("<td align=left colspan=2>");
document.write("");
document.write("<span style=white-space:nowrap;><\/span>");
document.write("<\/td>");
document.write("<\/table>");
document.write("<\/div><script>_IG_TriggerEvent('domload');<\/script><\/body><\/html>");
}
</script>

<!--
now place this function call at whatever point
it needs to write the markup on to the page: -->

<script type="text/javascript">
writeHTMLasJS();
</script>

thanks.

Please log in or register to answer this question.

...