Skip to content

Commit 54d64ba

Browse files
Fixes #460 - Remove sourceMappingURL lines from tinymce static files
1 parent f04e1c8 commit 54d64ba

File tree

23 files changed

+44
-22
lines changed

23 files changed

+44
-22
lines changed

tests/test_static_files.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import tempfile
2+
3+
from django.core.management import call_command
4+
from django.test import SimpleTestCase
5+
6+
7+
class TestStaticFiles(SimpleTestCase):
8+
9+
def test_manifest_static_files_storage(self):
10+
"""
11+
Test that TinyMCE's static files can be collected
12+
when using ManifestStaticFilesStorage - missing
13+
.map files can cause this to fail if the static
14+
files refer to them (GH issue #460)
15+
"""
16+
with tempfile.TemporaryDirectory() as temp_dir:
17+
with self.settings(
18+
STATIC_ROOT=temp_dir,
19+
STATICFILES_STORAGE="django.contrib.staticfiles.storage.ManifestStaticFilesStorage",
20+
):
21+
result = call_command("collectstatic", "--no-input")
22+
self.assertRegex(result, r"\d+ static files copied")

tinymce/static/tinymce/skins/content/dark/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/content/default/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/content/document/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/content/tinymce-5-dark/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/content/tinymce-5/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/content/writer/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/ui/oxide-dark/content.inline.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/ui/oxide-dark/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tinymce/static/tinymce/skins/ui/oxide-dark/skin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)