Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
//imce.vars.absurls = 1; //make IMCE return absolute file URLs to external applications.
In my Drupal environment, I'm using ckeditor + imce and the integration (almost) works. This is still a test environment, so it hasn't yet stood the fire of live users.
- CKEDITOR.replace( '{$name}' );+ CKEDITOR.replace( '{$name}',+ {+ filebrowserBrowseUrl : '/index.php?q=imce&app=ckeditor|sendto@imceCkeditSendTo|params@',+ filebrowserImageBrowseUrl : '/index.php?q=imce&app=ckeditor|sendto@imceCkeditSendTo|params@',+ filebrowserFlashBrowseUrl : '/index.php?q=imce&app=ckeditor|sendto@imceCkeditSendTo|params@',+ } );
{elseif $defaultWysiwygEditor eq 2}+ <script type="text/javascript" src="/sites/all/modules/imce_wysiwyg/js/imce_wysiwyg.js"></script> <script type="text/javascript" src="{$config->resourceBase}packages/ckeditor/ckeditor.js"></script>{/if}
<script type="text/javascript">document.write("Hello World!")</script>
<?php/* * This hook is called when an email is about to be sent by CiviCRM */function cbf_civicrm_alterMailParams( &$params ) { /* * Change relative URLs to absolute. */ $htmlMessage = CRM_Utils_Array::value( 'html', $params ); if ( $htmlMessage ) { /* * Links: Relative URLs start with a '/' and occur in the HREF attribute of an A element * Images: Relative URLs start with a '/' and occur in the SRC attribute of an IMG element * The '/' is replaced by the CiviCRM User Framework Base URL, which terminates with a '/' */ $config = CRM_Core_Config::singleton( ); $htmlMessage = str_replace(' href="/', ' href="'.$config->userFrameworkBaseURL, $htmlMessage); $htmlMessage = str_replace(' src="/', ' src="'.$config->userFrameworkBaseURL, $htmlMessage); $params['html'] = $htmlMessage; }}
config.filebrowserBrowseUrl = '/index.php?q=imce&app=ckeditor|sendto@ckeditor_fileUrl|';config.filebrowserImageBrowseUrl = '/index.php?q=imce&app=ckeditor|sendto@ckeditor_fileUrl|';config.filebrowserFlashBrowseUrl = '/index.php?q=imce&app=ckeditor|sendto@ckeditor_fileUrl|';
<p>this is a <a href="/sites/default/files/download/link.pdf">link</a></p>"
http://www.example.com/sites/default/files/download/link.pdf