FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Cannot quote post with CKEditor
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Cannot quote post with CKEditor [message #184164] Mon, 09 December 2013 21:03 Go to next message
wferguss   Canada
Messages: 11
Registered: December 2013
Karma: 0
Junior Member
I can't find any reference to this problem anywhere, but I'm hoping I'm not the only one who's seen this.

I recently installed FUDforum with CKEditor. If I click on the Quote button next to a post, the CKEditor tool buttons are greyed out on the Post Form, and the Body field appears empty. I can see the quoted post in the HTML, but it's not visible on the page. When I click on Preview or Submit, the quoted content is lost.

Any suggestions on how to get post quoting to work when running CKEditor?

Re: Cannot quote post with CKEditor [message #184177 is a reply to message #184164] Fri, 13 December 2013 21:03 Go to previous message
wferguss   
Messages: 11
Registered: December 2013
Karma: 0
Junior Member
In case anyone else runs into this, here's the solution.

FUDforum using BBCode encodes the quoted message using this format:

[quote title=<blah>]

instead of the following format expected by the CKEditor BBCode plugin:

[quote=<blah>]

The BBCode plugin errors on a null value because it wasn't written to handle this kind of input. If you add a check for null value to avoid the error, it treats the quote more or less like an unrecognized tag, with the complication that it can't match up the opening and closing tags.

I fixed it by modifying FUDforum post.tmpl, ppost.tmpl, and post_proc.inc.t files to use "[quote=" instead of "[quote title=".

I also modified CKEditor BBCode plugin.js to stop adding quotes around the cite text, because they were being displayed and I didn't want that.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Dealing with FudForum in an iFrame
Next Topic: Login using cookie for authentication
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Jul 01 05:25:31 GMT 2024

Total time taken to generate the page: 0.03495 seconds