[BETA PLUS] WYSIWYG Rich Text Editor for Post and Private Message New Technique

Started by eCardMax.com, December 28, 2004, 03:56:01 AM

Previous topic - Next topic

shankedup

The Mod works beautifully in 1.1.2, 1.1.3 and 1.1.4... i've tested them all

there is one little bug (i dont think it is a problem in compatibility between the versions)
but the error came up in 1.1.4, which may need to be looked at:

in the first mod file

<!--//HotEditor MOD - Quick Reply -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" cols="75" rows="7" id="message" name="message" tabindex="1"></textarea>
<style type="text/css">@import url(richedit/styles/office2007/style.css);</style>
<script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script>
<script language="JavaScript" type="text/javascript">
var getdata =document.getElementById("message").value;
Instantiate("min","editor", getdata , "100%", "150px");
//For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
if(enable_vietnamese_keyboard==1){
document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
}
function get_hoteditor_data(){
if (HTML_ON == "no"){
alert ("Please uncheck the HTML checkbox");
return false;
}
else{
setCodeOutput();
var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
document.getElementById("message").value = bbcode_output;
}
}
</script><br />
<!--//HotEditor MOD Quick Reply -->


it is highly suggested that the "single quotes" [ ' ] have a backslash in front of them, to fix this bug

so that you get:


<!--//HotEditor MOD - Quick Reply -->
<textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" cols="75" rows="7" id="message" name="message" tabindex="1"></textarea>
<style type="text/css">@import url(richedit/styles/office2007/style.css);</style>
<script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script>
<script language="JavaScript" type="text/javascript">
var getdata =document.getElementById("message").value;
Instantiate("min","editor", getdata , "100%", "150px");
//For Vietnamese User. Edit file editor.js to enable vietnamese keyboard
if(enable_vietnamese_keyboard==1){
document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"richedit/avim.js\"><\/script>");
var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";}
document.write("<div style=\'width:100%;text-align:center;font-family:Verdana;font-size:11px;\'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>");
}
function get_hoteditor_data(){
if (HTML_ON == "no"){
alert ("Please uncheck the HTML checkbox");
return false;
}
else{
setCodeOutput();
var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode
document.getElementById("message").value = bbcode_output;
}
}
</script><br />
<!--//HotEditor MOD Quick Reply -->


or else there is a template parse error...

very nice mod
- nice work

eCardMax.com

Hello!

Please use the link below to download Hoteditor MOD for SMF 1.1.4

http://www.ecardmax.com/ehelpmax/resource/download/f390f754/hoteditor_smf_mod.zip [nofollow]

The zip file comes with new editor.js and the instruction to guide you to install hoteditor to SMF 1.1.4. I want to attach the preset files to this board so you guys can download it but I couldn't find the way to upload file.

Regards,
www.eCardMAX.com [nofollow]
E-cards are a fun and interactive way
to entice repeat visitors to a site,
Visit us for more in detail  :)


MY MOD:
Time to add WYSIWYG Editor to your SMF forum

gome

hi i have a problem. hoteditor doesnt load in my page . I download firebug for check the error and i get this error message

"Instantiate is not defined"
Instantiate("max","editor", getdata , "100%", "300px");         

Thanks.



gome


thierryhl


aloche65

hi. I've a quick reply problem. the quick replay textarea don't display in 1.1.4
please help me!!!

Nibogo

i have a little error

when i try to send a PM with this editor , say:

"the body of the message left empty" (i use a translator)

how i can have the normal editor for PM and the advance editor only in post?

Eliana Tamerin

Thanks ecardmax.com. This works out great!

I was wondering, though, if it would be possible to set up the hoteditor for the signature field in the profile edit screen much like this mod does? Can someone explain how?
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

General_Naga

Quote from: gome on January 29, 2008, 04:48:36 PM
Quote from: KesKin on February 18, 2007, 05:26:34 PM
Hi,
Error:The message body was left empty  ???

HI. Anyone knows how fix it ??


Thanks.


Same error I'm afraid, I get it in both Quick reply and normal reply.
Anyone know how to fix this? or even where to start looking? I really need a solution to this as my forums are currently crippled.


Thanks

ssmol1

quick reply problem. the quick replay textarea don't display in 1.1.4

Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

AdviseorAnswers.com

Social Networking


manumar

I have just installed the editor in my forum (1.1.5) and all is correct :D:D

Anyone know how to delete the copyright?? xD

SilverKnight

Quote from: manumar on June 23, 2008, 12:12:37 PM
I have just installed the editor in my forum (1.1.5) and all is correct :D:D

Anyone know how to delete the copyright?? xD

Really? great ! hmm why hasn't this been made into a package? its a great mod..

manumar

Quote from: SilverKnight on June 23, 2008, 08:56:51 PM
Quote from: manumar on June 23, 2008, 12:12:37 PM
I have just installed the editor in my forum (1.1.5) and all is correct :D:D

Anyone know how to delete the copyright?? xD


Really? great ! hmm why hasn't this been made into a package? its a great mod..

The package that I used is this: http://www.colegiodelaesperanza.com/descargas/varios/smf/hoteditor.4.2_smf.1.1.2.zip
I installed it after modify it to run into 1.1.5
Then I upload via FTP the richedit carpet or file... o como se llame xD(spanish xd) and then the editr run on my forum perfect!!

Only one question; I read, dont rembember where, that the editor have one hole for hackers, and it is the keyboard...:S someone know how repaire this??

Greetings

Knome

I installed everything and for some reason i can't get the actual editor to display. I have 1.1.3. I tried using the 1.1.2 install posted in this thread. Is there anywhere to grab the old versions from?

erikdiamond

Hi,

I have installed Hoteditor but got following error message:
Quote
Parse error: syntax error, unexpected '=' in .../Themes/default/Post.template.php on line 633

624:
625: if(editor_type=="0"){//BBCode Editor
626:
627:    WriteTEXT(text,"editor");
628:
629: }
630:
631: else{//WYSIWYG Editor
632:

633:    text=BBCodeToHTML(text);

634:
635:    WriteHTML(text,"editor");
636:
637: }

I dont know whats wrong with line 633??

Thanks,
Erik


HR

Question for the author.. can you post alterations to make the editor active for News in administration?

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

globat

Hi !
i had uploaded the files on my root directory !
and do all things in Hoteditor_Mod_SMF.txt !
but i have a error on my site !
when click on a topic link !
i had taked a picture from this error
see that please :
http://tinypic.info/files/mnxf5raf7x2li29xl2bo.jpg [nofollow]
Thanks ,

sergei37

Hello  :)

Are there any further topics about hoteditor/smf ?

i still have SMF 1.1.9 , which doesn't have WYSIWYG and hoteditor is good alternative.

i've succeded to install it, and it looks good. But there are some questions about additional modifications possibilities.

i hope, somebody knows , where i can find useful information about this feature

???


Advertisement: