Skip to content

Commit 5d784d6

Browse files
committed
Set RU language by default, add files for custom css
1 parent 4037725 commit 5d784d6

File tree

7 files changed

+215
-4
lines changed

7 files changed

+215
-4
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Changelog
22
=========
33

4+
* 0.0.11 - Set RU language by default, add files for custom css
45
* 0.0.10 - Update to TinyMCE 4.2.6

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "django-tinymce-4",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"homepage": "https://github.com/ITCase/django-tinymce-4",
55
"authors": [
66
"ITCase <[email protected]>"

tinymce_4/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '0.0.10'
2+
__version__ = '0.0.11'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
body
2+
{
3+
background: #fff;
4+
padding: 15px 0 0 15px;
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body
2+
{
3+
font-size: 1em !important;
4+
}

tinymce_4/static/tinymce_4/langs/ru.js

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

tinymce_4/static/tinymce_4/settings/full.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ function change_image_alignment(node, styles) {
1717
tinymce.init({
1818
height: '350px',
1919
selector: 'textarea.tinymce',
20+
language_url : '/static/tinymce_4/langs/ru.js',
2021
theme: 'modern',
2122
relative_urls: false,
2223
valid_elements: '*[*]',
2324
content_css: [
24-
'/static/tinymce_4/tinymce_content.css?' + new Date().getTime(),
25-
'/static/tinymce_4/tinymce_reset.css?'+ new Date().getTime()
25+
'/static/tinymce_4/css/tinymce_content.css?' + new Date().getTime(),
26+
'/static/tinymce_4/css/tinymce_reset.css?'+ new Date().getTime()
2627
],
2728

2829
plugins: [

0 commit comments

Comments
 (0)