question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tinymce.init not working on the redirection from the app

See original GitHub issue

What is the current behavior? https://www.loom.com/share/932118fb3a5c48a0b24510ecb7b09ca9

I implement it this way - the #mymce1 is rendered


import "tinymce";
import "@tinymce/tinymce-angular";

declare var tinymce: any;

  ngOnInit() {
    let _this = this;
    tinymce.init({
      selector: "#mymce1",
      toolbar: "bold italic underline | alignleft aligncenter " + "alignright | bullist numlist  | ",
      menubar: false,
      statusbar: false,
      plugins: ["advlist autolink lists link ", " paste "],
      my_custom_variable: _this,
      init_instance_callback: this.handleValueChanged,
    });
}

What is the expected behavior? when the page is refreshed and reloaded it working as expected, when it redirected by the router of the app - it’s not working

Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?

angular version - 7.2.16 tinymce version - cloud 5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jscascacommented, Mar 23, 2021

Hey @logikalcamp it seems like you are not using the tinymce-angular integration and you are initialising the editor by yourself? Do you get the same behaviour when using the editor tag from the tinymce-angular integration?

You can find more on how to use the integration here: Tinymce Angular quick start guide

@krishnafj are you using a similar code initialisation? If you are using the integration, can you provide a codesandbox replication of the issue?

0reactions
jscascacommented, Jun 10, 2021

Closing due to inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

TinyMCE not working: possible causes and fixes
There are a couple of possible reasons of TinyMCE not working - you can fix those easily and ... TinyMCE not working due...
Read more >
TinyMCE not working in http request xhr ajax generated page
My problem is that when the page is returned to the browser via the httpRequest/ajax the text area does not display the tinymce...
Read more >
Browser redirects to homepage when I save or submit form in ...
I'm trying to integrate TinyMCE into a PHP CMS. Everytime I save using the save button in the TinyMCE GUI or use a...
Read more >
[SOLVED] TinyMCE and Form set_value problem
Got TinyMCE working on a lot of my apps, is very usefull. ... Thanks for your input I'll try your init on my...
Read more >
Integration of tinyMce with LWC is not working
Here the tinymce js file is getting loaded and I am getting success in console but the textarea is not getting initialized as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found