Skip to content

Commit

Permalink
Add language.js
Browse files Browse the repository at this point in the history
  • Loading branch information
movie4 committed Sep 8, 2020
1 parent 815f14e commit cae6b85
Show file tree
Hide file tree
Showing 13 changed files with 365 additions and 215 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

0.0.27
------
* Add language.js

0.0.26
------
* Update tinymce4 to 5+
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "django-tinymce-4",
"version": "0.0.26",
"version": "0.0.27",
"homepage": "https://github.com/ITCase-django/django-tinymce-4",
"authors": [
"ITCase <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "django-tinymce-4",
"title": "Integrate TinyMCE in Django projects",
"description": "",
"version": "0.0.26",
"version": "0.0.27",
"homepage": "http://www.github.com/ITCase-django/django-tinymce-4/",
"author": "ITCase <[email protected]> (http://www.itcase.pro/)",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion tinymce_4/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.0.26'
__version__ = '0.0.27'
481 changes: 350 additions & 131 deletions tinymce_4/static/tinymce_4/langs/ru.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions tinymce_4/static/tinymce_4/settings/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ if (typeof tinySettings !== 'undefined') {
tinySettings.image_class_list = tinyImageClassList;
}

if (typeof tinyLanguage !== 'undefined') {
tinySettings.language = tinyLanguage;
}

if (typeof tinyLanguageUrl !== 'undefined') {
tinySettings.language_url = tinyLanguageUrl;
}
Expand Down
6 changes: 0 additions & 6 deletions tinymce_4/static/tinymce_4/settings/full/external_plugins.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<<<<<<< HEAD
var tinyExternalPlugins = {
'insertzoomimage': '/static/tinymce_4/plugins/insertZoomImage.js'
=======
var externalPlugins = {
'insertzoomimage': '/static/tinymce_4/plugins/insertZoomImage.js',
'typograf': '/static/tinymce_4/plugins/typograf.js'
>>>>>>> master
}
2 changes: 2 additions & 0 deletions tinymce_4/static/tinymce_4/settings/full/language.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var tinyLanguageUrl = '';
var tinyLanguage = '';
2 changes: 0 additions & 2 deletions tinymce_4/static/tinymce_4/settings/full/language_url.js

This file was deleted.

2 changes: 0 additions & 2 deletions tinymce_4/static/tinymce_4/settings/full/plugins.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
var tinyPlugins = [
// custom
'insertzoomimage',
// tiny
'advlist',
'anchor',
Expand Down
1 change: 1 addition & 0 deletions tinymce_4/static/tinymce_4/settings/full/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var tinySettings = {
plugin_preview_width: '730',
plugin_preview_height: '550',

language: '',
language_url: '',

content_css: [
Expand Down
70 changes: 0 additions & 70 deletions tinymce_4/static/tinymce_4/tinymce_initialization.js

This file was deleted.

2 changes: 1 addition & 1 deletion tinymce_4/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Media:
'tinymce_4/settings/full/menubar.js',
'tinymce_4/settings/full/menu.js',
'tinymce_4/settings/full/toolbar.js',
'tinymce_4/settings/full/language_url.js',
'tinymce_4/settings/full/language.js',
'tinymce_4/settings/full/plugins.js',
'tinymce_4/settings/full/style_formats.js',
'tinymce_4/settings/full/table_class_list.js',
Expand Down

0 comments on commit cae6b85

Please sign in to comment.