Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of backslashes #1308

Open
johnyb0y opened this issue Nov 15, 2022 · 1 comment
Open

Removal of backslashes #1308

johnyb0y opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
needs: dev review This PR needs review by a developer tweak

Comments

@johnyb0y
Copy link

Hello everyone,

currently UserFrontEnd Pro on post creation removes all backslashes in the post.
This is probably done as sanitization measure.

For us this is frequently an annoyance, since we use UserFrontEnd Pro in our self-built internal Intranet and a lof of SMB network paths containing backslashes get mentioned in posts, and people would like to copy and paste them.

When posting via the backend, also using TinyMCE, the backslashes get replaced as HTML Unicode chars and not removed.

As an optional setting, could you please allow for a Unicode char replacement of backslashes instead of a complete removal.

This can be done as a TinyMCE config, something like this:

setup: function (editor) {
    editor.on('GetContent', function (e) {
        //character encoding for backslash
        e.content = e.content.replace(/\\/g, "\");
     });
}

Thank you.

@johnyb0y
Copy link
Author

As a workaround I've now embedded a small conversion form in our post form:
scr2

For us this is fine, but I'd still appreciate it, if you would fix this in general. Thank you.

@sapayth sapayth added the tweak label Dec 2, 2022
@anik-fahmid anik-fahmid added the needs: dev review This PR needs review by a developer label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: dev review This PR needs review by a developer tweak
Projects
None yet
Development

No branches or pull requests

4 participants