#4664 closed Bug (duplicate)
config.baseHref not used in WYSIWYG area
Reported by: | Elbert F | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0.1 |
Keywords: | Cc: |
Description
It took me a while to figure out why images were broken when editing a page even though config.baseHref was set to the correct path (I'm using one editor to edit pages in different directories and change the baseHref value dynamically).
I fixed it by changing /plugins/wysiwygarea/plugin.js (around line 559), from:
data =
editor.config.docType +
'<html dir="' + editor.config.contentsLangDirection + '">' +
'<head>' +
To:
data =
editor.config.docType +
'<html dir="' + editor.config.contentsLangDirection + '">' +
'<base href="'+ editor.config.baseHref + '"/>' +
'<head>' +
Please let me know if there is a better way of doing this but this fixed the issue for me.
Change History (2)
comment:1 Changed 15 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
Milestone: | CKEditor 3.x |
---|
DUP of #3401.