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

Moodle Spectrum display issue #297

Open
registerme1963 opened this issue Dec 25, 2022 · 3 comments
Open

Moodle Spectrum display issue #297

registerme1963 opened this issue Dec 25, 2022 · 3 comments

Comments

@registerme1963
Copy link

This is in continuation of earlier issue: #269
The structure insert is working well. No need to edit moodle/lib/weblib.php.
However, the spectrum tags are stripped by the moodle.

any solution
regards

@registerme1963
Copy link
Author

registerme1963 commented Dec 26, 2022

If I change as SPECTRUM_INSPECTOR_CLASS: 'KekuleChemObjViewer' in button.js then the spectrum display seems to be good. No stripping is done. Is it okay to change it?

regards

@partridgejiang
Copy link
Owner

Hi @registerme1963, its a quite confuzing problem. Generally, Moodle will not run a HTML content filter based on certain class names. In my own test, the spectrum with class name KekuleSpectrumInspector can also be outputed successfully in my test site (Moodle 4.0.4). However, changing such a class name should not do any harm. So it may be a safe and quick work-around, :).

@registerme1963
Copy link
Author

The issue comes only in forum posts. In others it works with class name KekuleSpectrumInspector. I'm also in Moodle 4.0.4
Thanks for reassurance.
regards

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