The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relative URLs and Ckeditor
#7
I just ran in to this problem too and I finally figured out a reasonable workaround with a little help from this forum post (http://get-simple.info/forum/topic/487/c...-ckeditor/)

in edit.php the default baseHref for CKEditor has been set $SITEURL

The actual problem isn't with CKEditor but with the image browser which resolves the image path separately. What you need to do is change line 23 in filebrowser.php to match the default that is set in edit.php, like so:

previous line 23:
$sitepath = suggest_site_path();

new line 23:
$sitepath = $SITEURL;

Now when I set my site url to '/', I get the correct image links when I drop them in to CKEditor with the browse tool. This saves having to do the tedious batch replace method suggested by yojoe Smile

Edit: And when you do that, any baseHref that you may have added to the CKEditor config file will now be applied as expected since the image url no longer contains http://yourdomain.com/...
Reply


Messages In This Thread
Relative URLs and Ckeditor - by peterb - 2011-06-17, 04:24:54
RE: Relative URLs and Ckeditor - by zulusnet - 2015-06-18, 23:53:00
RE: Relative URLs and Ckeditor - by shawn_a - 2015-06-19, 00:17:41
RE: Relative URLs and Ckeditor - by shawn_a - 2015-06-19, 00:32:20
RE: Relative URLs and Ckeditor - by datiswous - 2015-06-19, 19:07:23
Relative URLs and Ckeditor - by yojoe - 2011-06-17, 04:30:51
Relative URLs and Ckeditor - by gSvoren - 2011-06-17, 04:52:00
Relative URLs and Ckeditor - by Connie - 2011-06-17, 05:44:17
Relative URLs and Ckeditor - by peterb - 2011-06-19, 04:10:46
Relative URLs and Ckeditor - by yojoe - 2011-06-19, 04:17:40
Relative URLs and Ckeditor - by LogicalOctopus - 2011-06-22, 07:29:59
Relative URLs and Ckeditor - by Connie - 2011-06-22, 08:21:52
Relative URLs and Ckeditor - by LogicalOctopus - 2011-06-23, 01:46:35
Relative URLs and Ckeditor - by Connie - 2011-06-24, 20:32:32
Relative URLs and Ckeditor - by Lithie - 2011-10-04, 03:31:50
Relative URLs and Ckeditor - by stryker - 2012-03-01, 22:22:45
Relative URLs and Ckeditor - by mvlcek - 2012-03-01, 22:25:24
Relative URLs and Ckeditor - by stryker - 2012-03-01, 22:36:29
Relative URLs and Ckeditor - by mvlcek - 2012-03-01, 23:27:36
Relative URLs and Ckeditor - by stryker - 2012-03-02, 07:51:16
Relative URLs and Ckeditor - by Connie - 2012-03-02, 18:09:28
Relative URLs and Ckeditor - by stryker - 2012-03-02, 22:16:36
Relative URLs and Ckeditor - by cmb - 2012-03-03, 12:50:11
Relative URLs and Ckeditor - by sal - 2012-05-28, 15:50:42



Users browsing this thread: 2 Guest(s)