I'm trying to get these two components working together. Any help anyone can give will be gratefully accepted. I'm lost and frustrated.
I get no 'Browse Server' button and no extra tab on the Image dialog in CKEditor.
I've followed (I believe) all the step by step instructions in the README.TXT in the ckeditor Drupal module (\sites\all\modules\ckeditor) and there's obviously something I don't understand correctly.
My site is currently just a dev site and it's running on my machine at http://localhost/Drupal.
I have Apache 2.2, PHP 5.2.14, MySQL 5.1.50 running on XP Pro SP3.
The Drupal alias points at D:\Program Files\Zend\Apache2\htdocs\Drupal
The installation is generally working fine and CKEditor works as expected.
The modules are in
sites\all\modules\ckeditor
\ckeditor
\ckfinder
I copied CKFinder PHP version into the ckfinder directory where the COPY_HERE.TXT file is found.
The steps I followed
Removed CheckAuthentication from ckfinder\config.php
Set $baseUrl = 'localhost/Drupal/sites/all/modules/ckeditor/ckfinder/userfiles/'; in ckfinder\config.php
Added require_once '../../../../includes/filemanager.config.php'; in ckfinder\config.php
Went into Site Configuration | CKEditor and created a site_administrator profile.
Edited the profile and set File browser type (Link dialog): to CKFinder
Left the browser type to Image and Flash at 'Same as in Link Dialog'
Path to uploaded files set as %b%f/, Absolute path to uploaded files: %d%b%f/
Changed drupal/sites/default/settings.php by removing read only, setting $cookie_domain = 'localhost';, saved and back to read only.
Set the user permissions for CKEditor so 'allow CKFinder file uploads' is checked.
The samples in both Javascript and PHP in the /sites/all/modules/ckeditor/ckfinder/_samples/index.html example will open CKFinder in standalone and popup examples. But the CKEditor example opens the editor but doesn't give the Browse Server button, same as my Drupal site.
Fri, 11/05/2010 - 02:20
#1
Re: Need Help Integrating CK Finder With CKEditor
Now I get a Browse Server button ... but ...
The files are being uploaded to D:\Program Files\Zend\Apache2\docs\dummy-host.example.com\Acquia\sites\default\files\images.
I can't for the life of me figure out where that location is coming from, but that's where the uploaded files are going.
So of course what happens is that files are uploaded to the server, but when CKFinder constructs the link to the image to insert back to the page being edited - ha. Files aren't on that path.
???
Re: Need Help Integrating CK Finder With CKEditor
OK, so this is embarassing but I'm posting it anyway in the hopes it will help the next person.
The problem was a permissions problem, but not what you might expect.
When I set up this site (remembering it's dev) I just used the default administrator account to log in and work on the site.
When I set up CKEditor and CKFinder I created a site administrator role and was assigning all the necessary permissions to that role as I installed modules.
Only thing is, the administrator account didn't get the site administrator role by default. So the administrator could perform all the administrative functions - but it didn't get the Browse Server button on the dialog where you would expect it.
Assigning the site administrator role to the administrator account immediately got everything working.
Call off the hounds, and anyone else struggling with this, make sure your user account had the role you've set the permissions on assigned to it.
Re: Need Help Integrating CK Finder With CKEditor
After installing CKEditor and
After installing CKEditor and CKFinder, go to people > permissions and check "CKFinder Access" under the CKEditor section. This made the "Browse Server" button show up for me.
CKEditor & CKFinder
Greetings!
I'm attempting to get ckfinder functionality in ckeditor 4.2.2. I'm using php and javascript. I have the editor (inline) working just fine, but unless I change my I cannot get my <div> tags to use ckfinder unless I change them to <textarea> tags. Is <textarea> the only allowed element for ckfinder?
CODE:
I use php to generate "articles", as function calls like so:
<?php display_article(stage1)?>
The function display_article does this:
(snippit)
echo "<div id='{$aid}-article' class='about'";
if(isset($_SESSION['email'])){
echo "contenteditable='true'";
}
echo ">";
while($row = mysql_fetch_array( $rs ))
{
echo $row['text'];
}
echo "</div>
I have ckeditor working with this method. But it wont let ckfinder work.
My ckeditor config.js:
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'savebtn';
config.saveSubmitURL = 'http://noxgeo.dyndns.org/dsm/result.php';
config.allowedContent = true;
};
CKEDITOR.replace( 'editor1',
{
filebrowserBrowseUrl : 'ckfinder/index.html',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
} );
If I use the demo <textarea id="editor1" name="editor1"></textarea>
ckfinder funcitons, but I need <div> tags as shown above...am I missing something?
Thanks!
CKEditor & CKFinder -- Solved
I found my own solution over time:
In my situation the repair was to the manual configuration of CKEDITOR.inline in the javascript like so:
CKEDITOR.inline( 'editable', {
filebrowserBrowseUrl: 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl: 'ckfinder/ckfinder.html',
filebrowserFlashBrowseUrl: 'ckfinder/ckfinder.html',
filebrowserUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload',
filebrowserImageUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload',
filebrowserFlashUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload'
});
By getting rid of the ?type= attributes, it worked with CKFinder. This broke because in CKFinder I removed the extra Image and File folder/access definitions...so these links assume its still in place and bugged out. Removing them, puts the user at the base folder which is fine for my application.