New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kindly help me in sceditor for my forum with forumotion.com #296
Comments
SCEditor doesn't have ID's on the iframe or textarea inputs by default. If I remember correctly you can't modify the code that initialises SCEditor on Forumotion, can you? The best way I can think is to just manually add some ID's to the inputs. Something like this: Place this in the
And place this below the part where SCEditor JS is included (probably the footer):
|
Dear Mr. Samclarke. But not working still. Warm Regards & Thanks |
Just to make sure. Please post the full HTML code after the page has loaded, on forummotion. I should be able to understand what is happening, how it looks like and get a solution for you. |
We can't touch forumotion html codes. we can add javascript to make changes. |
I'm not asking to change it I just want to know the HTML structure. |
We can only view through DOM.(via Google Chrome Inspect Element) |
try that. i made it use the on() because I think it will delay its execution even longer. See if that solves your problem. |
Dear Mr. Brunoais, |
The problem is the code needs to run after SCEditor has been created. As far as I'm aware, Forumotion unfortunately doesn't give you any hooks to tell you when the editor has been created. Normally you can either just add code after the constructor or you could put the code in a plugin. As Forumotion doesn't give access to the code that initialises the editor, you can't add code after it or add a plugin to the constructor options. My idea was if the above code could be added after SCEditor JS is included but before the editor is initialised it could intercept it and load the transliteration that way. If it isn't working then I'm assuming the code can't be added below the code that includes the SCEditor JS. If @brunoais's code doesn't work either the only other thing I can think to try would be this (should all be added to the
|
Dear Mr. Samclarke. Thanks & Regards |
Are there any JavaScript errors in the console? To open the console press If there are no errors then I'm not sure what else to suggest. |
The code I gave you is not in that page. Are you sure you added such that it would appear in that page? |
@samclarke Thanks for the better idea. we done for the same. so that this is script working correctly, but loaded before that SCeditor. I think. @brunoais I just disable your JavaScript, shall I Enable? but not assign that id attribute to textarea in that console test. Once again Thanks to team. |
It's added the id's to both the Try this:
|
@samclarke Added your above script, but not working. Copy + Paste above code to console. getting error"undefined" |
When you say pasted to console, do you mean you put it in the web page and you're getting an error If you pasted it into the console it needs to go in the web page. |
I opening a topic in this website ctrl+shift+j copy paste that your script and enter. |
This is murali, co-admin in amarkkalam.net. any more solutions, kindly help me |
@ramgp01 if you do that, then the callback is never called because the load event had already been fired. |
@samclarke: We trying to fix this issue, but not yet resolved. @brunoais: Your point is correct. load event had already been fired. so that not working. If we fix this issue, we will inform here. We thank you very much your kind support. Warm Regards & Thanks! |
If you paste the following into the
|
@samclarke Again Thanks for your reply. I am sorry Mr. Samclarke, I am not well last two days, so that unable to reply this issue. I added this code, but load event had already been fired. so that id attribute not assigned. Any more idea sir? Will you add Tamil Language to Sceditor? Warm Regards & Thanks |
If the load event had already been fired, just execute the code right away. remove the load event callback. |
@brunoais: We already tried 2 days before. but not working. |
@ramgp01 debugging this is very hard without seeing where you're putting the code, if there are any error messages, etc. If the load event has already fired then it sounds like the code in the wrong place. It should be included before the page has loaded. If it has already fired then as @brunoais says just remove the load event. I've just checked and running the code without the load event on your forum after it's loaded does enable the transliteration with SCEditor. |
@samclarke Your point is may be correct. Because forumotion forums two types of editor mode are WYSIWYG enable mode/ WYSIWYG Disable mode. We tried both already. We give your script code in proper head tag, but forumotion removed all tags. script only taken. We have one more demo forum with forumotion.com Forum Url: http://tamilan.myforumpro.com/ Your help is most important with us, Kindly help sir. Warm Regards |
Forumotion is replacing the |
@samclarke: Thanks a lot!!!!!!! Now working perfectly, We are really exciting. So happy. Once again thanks so much. It is great effort for us. Thanks also @brunoais Warm Regards & Thanks! |
Dear Mr. @samclarke, Kindly refer above thread. New browsers not support Tamil Languages (destinationLanguage: ['ta'],) If possible, kindly resolve this issue. And one more thing microphone add to textarea possible? Warm Regards & Thanks! Tag: @brunoais |
@ramgp01 Please make a new issue and... Expect quite some wait from @samclarke ... Dunno if he will ever answer. |
This is Ram,
I am not strong knowledge in JavaScript.
We have a Tamil language forum got from forumotion.com. Forumotion now upgraded old editor to new Sceditor for all his forums.
Old editor textarea has a id attribute like "text_editor_textarea", we have using Google Tamil indic web version so worked perfectly.
But in Sceditor the textarea has no such id attribute, so that we can't type in Tamil or any other languages(Except English).
How to assign id attribute to that textarea? or any other way to use google tamil indic in this sceditor?
Time being we are using Google Input Tools Desktop version
Google indic web version JavaScript code given below:
<script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("elements", "1", { packages: "transliteration" }); function onLoad() { var options = { sourceLanguage: 'en', destinationLanguage: ['ta'], shortcutKey: 'alt+g', transliterationEnabled: true }; var control = new google.elements.transliteration.TransliterationControl(options); var ids = ["text_editor_textarea" ]; control.makeTransliteratable(ids); control.showControl('translControl'); } google.setOnLoadCallback(onLoad); </script>http://amarkkalam.com/Tools/tamileditor.html
We also giving demo user id and password
Site name: http://www.amarkkalam.net/login
Username: demo123
Password: [removed]
Screenshot: http://i.stack.imgur.com/Txsjw.jpg
Kindly help us.
Warm Regards & Thanks
Ram
The text was updated successfully, but these errors were encountered: