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

Keeping TinyMCE loaded between view changes #162

Open
@kawazoe

Description

@kawazoe

I am currently trying to integrate TinyMCE in a CMS type of project and I would like to know if there is a way to prevent the editor from reloading every time the view is displayed. While it isn't necessary slow (less than 1 second), it does cause a fairly heavy flicker when loading the page.

I looked into the Angular $templatecache service but, while I could cache the editor's structure once it is loaded, I do not know how I could rebind the various javascript functions to the element on page reload. I am pretty sure TinyMCE does not support to be initialized on a pre-loaded html template.

My only other idea is to have an "editor pool" always running off the screen and simply initialize and move them as I need inside my view through CSS or DOM manipulation. Though, I haven't tested to see if TinyMCE would play well with this.

I am willing to take the time to add this feature as a pull-request, but I would like a second opinion about those two solutions. Any idea? How would you tackle this issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions