Skip to content

Bad URL generated in the Image picker popup #29

@tobiaghiraldini

Description

@tobiaghiraldini

The image picker, after choosing the image from the filer media library, generates a bad url in the form of 0<!-- fn5oKSUxu1GBDpdmY1wB -->4/ and the image is not displayed nor added to the HTMLField content.
schermata 2017-07-22 alle 15 16 38
schermata 2017-07-22 alle 15 16 23

As a temporary, yet very uncomfortable, workaround it's possible to look into the image properties, copy the canonical_url, and paste it in place of the wrong generated url.

I wonder if I'm missing some important info here...

I believe everything is correctly setup:
settings.py

FILER_CANONICAL_URL = 'sharing/'
CKEDITOR_SETTINGS = {
    'skin': 'moono',
    'toolbar_HTMLField': [
        ['Bold', 'Italic', 'Underline', 'Blockquote', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
        ['Undo', 'Redo'],
        ['ShowBlocks'],
        ['Format', 'Styles'],
        ['FilerImage', 'HorizontalRule', 'Table']
    ],
    'extraPlugins': 'filerimage',
    'removePlugins': 'image'
}

urls.py

urlpatterns = [
    url(r'^filer/', include('filer.urls')),
    url(r'^filebrowser_filer/', include('ckeditor_filebrowser_filer.urls')),
]

Any clue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions