Firefox PHP

WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)

Posted by klgordon 
All files from this thread

File Name File Size   Posted by Date  
mod_prepare_editor_data_as_html.php 1.3 KB open | download Maurice Makaay 10/15/2010 Read message
WYSIWYG Editor.JPG 160.6 KB open | download Sreenadh OG 10/15/2010 Read message
WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
July 06, 2010 05:39PM
Language: HTML
<br> I have been looking for a WYSIWYG editor, and have tried just about all of them without success until I found the CKEditor http://ckeditor.com   After unzipping the files from the ckeditor.zip file, I copied the main folder and files to my Phorum folder and modified the template files with /n <textarea> in them.     Here is the code block I added:   <textarea name="body" id="body" class="body" rows="15" cols="50">{POSTING->body}</textarea> <script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>   <script type="text/javascript"> //<![CDATA[   // This call can be placed at any point after the // <textarea>, or inside a <head><script> in a // window.onload event handler.   // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. CKEDITOR.replace( ';body'; );   </script>   Only the template files had to be modified, no modification to Phorum core files had to be changed.   Kyle



Edited 3 time(s). Last edit at 07/06/2010 06:24PM by Maurice Makaay.
Re: WYSIWYG Editor for Phorum
July 06, 2010 06:23PM
  • Do not crosspost on these boards.
  • Do not spam on these boards.
  • Do not slash the other WYSIWYG editors.
  • Do not post non-module distributions in the modules forums (where you bluntly cross-posted). Read the rules there and comply to them. In fact: the code as posted above could be put into a module really easy. It would be a lot nicer when things would be bundled as a clean module to install for the Phorum users.
  • Do support the people that will follow these instructions and for whom this does not work as advertised.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: WYSIWYG Editor for Phorum
July 06, 2010 07:02PM
Sorry, This was my first post and I will not cross post again. I was not sure where to post too. I certainly did not dish the Phorum editor, and if you got that impression, I did not intend for the post to convey that message. I was just looking for an Editor that would not require the user to have to know bbcode. If you could point me in the direction, how the editor could be replaced with a MOD, I would pursue that.

Thank you for your support and the Phorum Forum software is one of the simplest and best I have tried.

PS: Your message was very harsh to a first time user.

Kyle
Re: WYSIWYG Editor for Phorum
July 06, 2010 07:08PM
It was harsh for a reason and I'm still 100% behind it. For multiple reasons as you can see. Your message is very, very spammy for a first time user. Posting your message multiple times makes it worse.

I know that you are not talking about the Phorum editor, since that one is nothing more than a textarea. I was referring to the fact that you are posing the CKEditor as the only WYSIWYG editor that would work.

About the mod: adding the javascript code from the before_footer hook seems like something that would work. I'm sure you can find the module documentation that explains how to write modules.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
July 06, 2010 07:31PM
Did not mean to convey that the other editors (which I did not mention by name) would not work, just that I could not make them work. The code added to the Template files seem to be stripped away before the delivery to the browser for all except the one mentioned.

Maybe adding the javascript code via a mod prior to the before_footer hook would have resolved that issue.

Thank you,

Kyle
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
July 06, 2010 10:17PM
Probably not, since it'd make no difference in the workings of that javascript code.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 07/06/2010 10:17PM by Maurice Makaay.
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
October 13, 2010 10:50AM
Hi klgordon,
Thanks for the excellent note! I have integrated CK Editor to our phorum installation and it works fine! Thanks to "HTML in Messages (version 3.0.0)" as well, which I am using along with this module. I have enabled HTML posting for anyone in the forum messages option; and disabled the BBCode related modules. Just experimenting to see how it works out. But the primary impression is excellent!
Thanks and regards,
Sreenadh
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
October 13, 2010 12:57PM
Good news, Sreenadh!
But aren't you afraid of cyber-attacks since you apparently handle many users?
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
October 13, 2010 01:27PM
Ehh... explain what a cyber-attack consists of, please.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)
October 13, 2010 01:50PM
I think of malicious code (XSS). Aren't there ways to filter content to accomplish reasonable security? If you have more complex content, it is a challenge to edit and move around these narrow BBCode brackets. But I will stay away from WYSIWYG Editors as long as it means jeopardized security.

PS: I believe ZOHO forums provide an WYSIWYG editor.
Sorry, only registered users may post in this forum.

Click here to login