Skip to content

Tinymce: error in [unknown object].fireEvent(): event name: tinymceChange error message: URI malformed #9452

Closed
@hostep

Description

@hostep

Preconditions

  1. Magento develop branch (tested with revision: 5ea676e)
  2. PHP 7.0.18

Steps to reproduce

  1. Setup a brand new Magento project from the develop branch
  2. Login to the backend
  3. Go to Content => Pages
  4. Create a new Page
  5. In the Content field, start entering: 10%

Expected result

  1. No errors should pop up

Actual result

  1. From the moment you type the % character, an error pops up:
    error in [unknown object].fireEvent(): event name: tinymceChange error message: URI malformed

screen shot 2017-04-28 at 20 55 54

Discussion

This problem was introduced in this commit: 9030e08
Removing the line content = decodeURIComponent(content); fixes the issue.

The question is: why was the line added?
The commit was part of some other commits to fix issue #6138

But without that line, the issue is fixed as well, in my tests though, but maybe the line was necessary for some other edge case?

It would be great if this could be fixed before Magento 2.2 is released, as this is a really annoying problem :)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions