Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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 Garry Yao

Resolution: duplicate
Status: newclosed

DUP of #3401.

comment:2 Changed 15 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy