Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

javascript error when using for inlineadmins #30

@ckot

Description

@ckot

I have CODEMIRROR_JS_VAR_FORMAT set to "%s_editor", but when in I try to use it for inlineadmins, I'm getting a javascript syntax error because the field is named 'chunks-0-text', which creates a js var named chunks-0-text_editor, which is an invalid because of the hyphens.

I can't think of any sort of workaround, other than perhaps allowing a function to be specified rather than simply a format string, where the function could perform substitutions such as converting hyphens to underscores, etc..

Does this seem like a reasonable request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions