Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Conflict between FCKeditor and Preview Post 2.1?
I finally got FCKeditor to work, and hats off to the developer.
Just now, though, I also installed Preview Post, which seems not to work so long as FCKeditor extension is enabled. When FCKeditor is disabled, Preview Post works like a charm. I'm wondering if there is a conflict between the two? Has anyone successfully used them together?
Just now, though, I also installed Preview Post, which seems not to work so long as FCKeditor extension is enabled. When FCKeditor is disabled, Preview Post works like a charm. I'm wondering if there is a conflict between the two? Has anyone successfully used them together?
0
This discussion has been closed.
Comments
look for this line
text = (encodeURIComponent) ? encodeURIComponent(form.Body.value) : escape(form.Body.value.replace(/\+/g, '%2B'));
replace it with
var oEditor = FCKeditorAPI.GetInstance('Body') ; text = oEditor.GetXHTML( true ) ;
make sure u enable previewpost after u enable fckeditor else preview post won't find the function
thats solves the fckeditor preview headache as well. now i can remove its build in preview function
I installed fckeditor, user tooltip, then downloaded and installed preview post extension. I chaged the lines mentioned in preview.js, but when I go to preview a post, I just get a box with a grey "Preview" in the background, my username and the date. None of the posts contents show up in the preview.
Thanks
btw a_j can u give me ur forum url
user: test
pass: test
hehehe nothing is compatible with fckeditor.
i can see ur using an old version of fckeditor plugin, u need the new version so userinfotooltip works
ur not using ajaxquote. why?
u have a million and one extensions running. finding the source of conflict is going to be a pain
can u try disabling the Yshout plugin. how many do u need. u have 4 of em
<script type="text/javascript" src="/talk/yshout/js/yshout.js"></script> <script type="text/javascript" src="/talk/js/yshout.js"></script> <script type="text/javascript" src="/talk/yshout/js/yshout.js"></script> <script type="text/javascript" src="/talk/js/yshout.js"></script>
I've got the fckeditor almost fully functioning. Photo uploads (which is awesome), youtubes, swf's, it's aweseoeoeome.
The only things still broken are spellcheck and preview post.
But HUGE thanks on the work. It looks great.
Couldn't figure out what exactly was breaking IE. I noticed it was working on the testing site. So I deleted the fckeditor extension folder, re-uploaded, and re-did the code changes. Everything is working great. I musthave fudged something in default.php.
Thanks very much for all the hard work, and for the help. It's much appreciated.
Cheers!
text = (encodeURIComponent) ? encodeURIComponent(form.Body.value) : escape(form.Body.value.replace(/\+/g, '%2B'));
with this
var oEditor = FCKeditorAPI.GetInstance('Body') ; text = oEditor.GetXHTML( true ) ; text = (encodeURIComponent) ? encodeURIComponent(text) : escape(text.replace(/\+/g, '%2B'));
tested it with complex table with divs and all and it worked.
if( typeof FCKeditorAPI != "undefined" ){ var oEditor = FCKeditorAPI.GetInstance('Body'); text = oEditor.GetXHTML( true ) ; text = (encodeURIComponent) ? encodeURIComponent(text) : escape(text.replace(/\+/g, '%2B')); }else{ text = (encodeURIComponent) ? encodeURIComponent(form.Body.value) : escape(form.Body.value.replace(/\+/g, '%2B')); }
If you do this, I suggest you remove the Preview button from FCKEditor so users do not get confused with two different preview options.