Skip to content

Force absolute paths for images, links etc. #3671

Open

Description

Type of report

Feature request

Provide description of the new feature

Currently if user set image's URL to relative path, `CKEDITOR.editor#getData() will return relative URL. However it is possible to get full, absolute URL from the DOM property: https://jsfiddle.net/Comandeer/zhsb8dLp/ (image throws 404 – as I wanted to use relative path – but the whole mechanism seems to be working; at least in Chrome).

Forcing absolute URLs for data fetched from the editor ensures that the embedded content, links etc. will continue to work after exporting from the editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    coreThe issue is caused by the editor core code.The issue is caused by the editor core code.plugin:imageThe plugin which probably causes the issue.The plugin which probably causes the issue.plugin:linkThe plugin which probably causes the issue.The plugin which probably causes the issue.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:featureA feature request.A feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions