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

Editor not working https://beautifier.io/ #2201

Closed
OsamaFarooqi opened this issue Oct 6, 2023 · 5 comments
Closed

Editor not working https://beautifier.io/ #2201

OsamaFarooqi opened this issue Oct 6, 2023 · 5 comments

Comments

@OsamaFarooqi
Copy link

I tried to add the text in the editor for Beautify but it seems the text is disabled. Is anyone else facing the same issue?

@jatin-2708
Copy link

Its working dude!

@m0riya42
Copy link

m0riya42 commented Oct 9, 2023

no, he is right. there is a problem with Code Mirror files.

Console Logs:

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/theme/darcula.min.css' with computed SHA-256 integrity 'Fxr+aGftuFXhaJIvakiUpy6kXsjrZxCEJ0p15lO+xnU='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.min.js' with computed SHA-256 integrity '0KuQ1XThHXVhDa6jdITxdeTYDzaWV/lPuBYwPVycGrM='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/xml/xml.min.js' with computed SHA-256 integrity 'k5VUTWMtSLTiSEeTkgvL5JmW/CvqJpnMMCctFFYDhNk='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/javascript/javascript.min.js' with computed SHA-256 integrity '+8VGSstY4NpdOKrpqikOA7VL/2kFtpAZLogBVyi2oG4='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/css/css.min.js' with computed SHA-256 integrity 'gQQR5ZHMZP6hok3/cft321eIa7RumZlbgHEV8LWtLpo='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/htmlmixed/htmlmixed.min.js' with computed SHA-256 integrity 'ogj2tQCFQi/aCdn6B5tKnqYPFJigkQ0A6cs+1juMt5Y='. The resource has been blocked.
search.js:18 Uncaught ReferenceError: CodeMirror is not defined
    at search.js:18:9
    at search.js:19:3
(anonymous) @ search.js:18
(anonymous) @ search.js:19
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/search/searchcursor.min.js' with computed SHA-256 integrity 'h1dBxYRDp0lGIwSxpwtZg/5xwQ7Ar+pnmLubIUW4pg0='. The resource has been blocked.
beautifier.io/:1 

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/dialog/dialog.min.js' with computed SHA-256 integrity '+RMZ8Ss5fH2P0i2mWXYBJ8PObZMfTBf2dbyHKhaY6bU='. The resource has been blocked.`


@bitwiseman
Copy link
Member

bitwiseman commented Oct 9, 2023

It looks like the integrity sha-256 changed for https://cdnjs.com/libraries/codemirror/5.48.4 changed.
There's also considerably newer versions of codemirror 5.x available: https://cdnjs.com/libraries/codemirror/5.65.15
Would one of you be willing to submit a PR with the updated script tags? It basically is just a matter of copying them (using the convenient appropriate "copy script tag" button) from on of the pages above. If not I'll get to it some time this week.

@m0riya42
Copy link

Do you mean to update this part:

<!-- Codemirror from https://cdnjs.com/libraries/codemirror -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.min.css" integrity_no="sha256-vZ3SaLOjnKO/gGvcUWegySoDU6ff33CS5i9ot8J9Czk=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/theme/darcula.min.css" integrity_no="sha256-ZzdkdGSdYSUv4R77x7A5G7EeFDLMhAiCybNBNxNoxos=" crossorigin="anonymous">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.min.js" integrity_no="sha256-dPTL2a+npIonoK5i0Tyes0txCMUWZBf8cfKRfACRotc=" crossorigin="anonymous"></script>

  <!-- Codemirror Modes -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/xml/xml.min.js" integrity_no="sha256-cphnEddX56MtGJsi1PoCPLds+dlnDj1QQkAlCWeJYDo=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/javascript/javascript.min.js" integrity_no="sha256-7AjEsHnW7cpq2raC/uxnGCP2G4zIKmCdz7OAv6LN00o=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/css/css.min.js" integrity_no="sha256-mjhvNBMExwa2AtP0mBlK9NkzJ7sgRSyZdgw9sPhhtb0=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/htmlmixed/htmlmixed.min.js" integrity_no="sha256-qfS6ZUe6JhPU75/Sc1ftiWzC2N9IxGEjlRwpKB78Ico=" crossorigin="anonymous"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/search/search.js" integrity_no="sha256-iUnNlgkrU5Jj8oKl2zBBCTmESI2xpXwZrTX+arxSEKc=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/search/searchcursor.min.js" integrity_no="sha256-y7nxCQ9bT6p4fEq9ylGxWfMQBpL6ingXkav6Nr1AcZ8=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/dialog/dialog.min.js" integrity_no="sha256-G+QhvxjUNi5P5cyQqjROwriSUy2lZtCFUQh+8W1o6I0=" crossorigin="anonymous"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/addon/dialog/dialog.css" integrity_no="sha256-XfaQ13HxIRg0hWLdKpAGBDOuLt7M0JCKvKpEgLHj5Gg=" crossorigin="anonymous">

to new version?

there is more versions, to which one?

image

@bitwiseman
Copy link
Member

We need to stick with 5.x for now. 6.x has broader breaking changes. If you want to do that upgrade as well, feel free. But I would suggest just upgrading 5.x and then looking at what needs to be done for 6.x.

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

No branches or pull requests

4 participants