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

Button doesn't appear on TinyMCE v4 Toolbar #4

Open
GregLee-Jeffco opened this issue Mar 26, 2021 · 4 comments
Open

Button doesn't appear on TinyMCE v4 Toolbar #4

GregLee-Jeffco opened this issue Mar 26, 2021 · 4 comments

Comments

@GregLee-Jeffco
Copy link

GregLee-Jeffco commented Mar 26, 2021

Greetings,

I believe I installed your mathsymbol correctly onto our MVC page. However, it doesn't seem to appear on the on toolbar. Do you have any idea what I might have missed?

Here's my code:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

<script>
    tinymce.init({
        selector: '.edithtml',
        external_plugins: { 'mathSymbols': '/scripts/mathsymbols-tinymce-plugin.js' }, // Add plugin to Tinymce
        plugins: 'mathSymbols',
        toolbar: 'mathSymbols undo redo styleselect bold italic alignleft aligncenter alignright bullist numlist outdent indent code',
        
    });
</script>

As you can see here, there is no icon even though I added it to the toolbar...

image

Any idea what I can try to do to fix this? LMK, thanks!

(Oh and how is your TinyMCE V5 coming along? :) )

@Axel186
Copy link
Owner

Axel186 commented Mar 27, 2021

Hey @GregLee-Jeffco ,
Thank you for reaching me out!

I am not supporting the project since I don't have any available time for it at this moment. Hopefully, soon, this situation will change and then I will be able to solve multiple open issues + provide the TinyMCE v5 support that people ask.

Now let's talk about your issue ;)

Are you sure all your files are loaded correctly (paths to files).
Can you please review your "Network" tab in developer tools. Are there any "red" lines or http errors?
Are there any errors in browser console?

I have a feeling that the script is not loaded properly in your case.

@GregLee-Jeffco
Copy link
Author

GregLee-Jeffco commented Mar 29, 2021 via email

@Axel186
Copy link
Owner

Axel186 commented Apr 1, 2021

@GregLee-Jeffco ,

Looks like loading script issue.

Can you show me how do you connect the plugin? There should be <script> tag with the path to js file.

Usually, this kind of errors appear when we connect ES modules to HTML.
You can try adding module attribute just for a test.
Example: <script type="module" src=".....js"></script>

@GregLee-Jeffco
Copy link
Author

GregLee-Jeffco commented Apr 1, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants