Tinymce.init not working on the redirection from the app
See original GitHub issueWhat 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
Closing due to inactivity