Skip to content

Cannot paste base64 if filebrowserUploadHandler is set #241

Open
@grztofdev

Description

@grztofdev

My simple form looks like this:

final class ContentType extends AbstractType
{
    private RouterInterface $router;

    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder->add('content', CKEditorType::class, [
            'label' => 'Treść',
            'constraints' => [new NotBlank()],
            'config' => [
                'filebrowserUploadHandler' => $this->router->generate('upload')
            ]
        ]);
    }
}

If I want to paste svg image in base64 format, I am getting the following error in dev tool:

Uncaught TypeError: Cannot read property '1' of null

If I remove filebrowserUploadHandler parameter from my ContentType everything works fine, the base64 image is pasted normally.

Does anyone have any idea what happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions