Skip to content

Commit 54e7f00

Browse files
committed
update table classes list
1 parent 028ae8e commit 54e7f00

File tree

107 files changed

+16080
-15325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+16080
-15325
lines changed

.stylelintrc

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,50 @@
11
{
22
"extends": "stylelint-config-standard",
3+
"plugins": [
4+
"stylelint-order"
5+
],
36
"rules": {
7+
"order/properties-order": [
8+
"width",
9+
"height",
10+
"min-width",
11+
"min-height",
12+
"max-width",
13+
"max-height",
14+
"font",
15+
"color",
16+
"text-shadow",
17+
"text-decoration",
18+
"text-transform",
19+
"text-align",
20+
"white-space",
21+
"background",
22+
"padding",
23+
"margin",
24+
"border",
25+
"border-radius",
26+
"position",
27+
"display",
28+
"content",
29+
"left",
30+
"top",
31+
"right",
32+
"bottom",
33+
"vertical-align"
34+
],
435
"no-descending-specificity": null,
536
"shorthand-property-no-redundant-values": null,
6-
"at-rule-empty-line-before": ["never", {
37+
"at-rule-empty-line-before": [
38+
"never",
739
except: [
840
"blockless-after-same-name-blockless",
9-
"blockless-after-blockless",
41+
"blockless-after-blockless"
1042
],
1143
ignore: [
1244
"after-comment",
1345
"blockless-after-blockless"
1446
]
15-
}],
47+
],
1648
"function-url-quotes": "always",
1749
"max-nesting-depth": 10,
1850
"string-quotes": "single",

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changelog
77
0.0.22
88
------
99
* Add table class list
10+
* Update tinymce4 to 4.7.12
1011

1112
0.0.21
1213
------

LICENSE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 ITCase
3+
Copyright (c) 2018 ITCase
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "django-tinymce-4",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"homepage": "https://github.com/ITCase-django/django-tinymce-4",
55
"authors": [
66
"ITCase <[email protected]>"
@@ -15,6 +15,6 @@
1515
"tests"
1616
],
1717
"dependencies": {
18-
"tinymce": "~4.7.9"
18+
"tinymce": "~4.7.12"
1919
}
2020
}

gulpfile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const gulp = require('gulp')
44
const plugins = require('gulp-load-plugins')({ pattern: ['gulp-*', 'gulp.*'] })
55

66
const argv = require('yargs').argv
7+
const chalk = require('chalk')
8+
const log = require('fancy-log')
79
const map = require('vinyl-map')
810

911
const TARGET_CSS = '__tinymce-4.css'
@@ -58,9 +60,10 @@ gulp.task('css', () => {
5860
return gulp.src(CSS_FILES)
5961
.pipe(plugins.plumber({
6062
errorHandler: (err) => {
61-
plugins.util.log(
62-
plugins.util.colors.red('gulp-css:'),
63-
plugins.util.colors.yellow(err.message))
63+
log(
64+
chalk.red('gulp-css:'),
65+
chalk.yellow(err.message),
66+
chalk.yellow(err))
6467
}
6568
}))
6669
.pipe(plugins.sourcemaps.init())
@@ -89,8 +92,7 @@ gulp.task('css', () => {
8992
.pipe(gulp.dest(TARGET_CSS_PATH))
9093
.pipe(plugins.filter('**/*.css'))
9194
.pipe(map((code, filename) => {
92-
plugins.util.log('CSS: ' +
93-
plugins.util.colors.green(filename))
95+
log('CSS: ' + chalk.green(filename))
9496
}))
9597
})
9698

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "django-tinymce-4",
33
"title": "Integrate TinyMCE4 in Django projects",
44
"description": "",
5-
"version": "0.0.21",
5+
"version": "0.0.22",
66
"homepage": "http://www.github.com/ITCase-django/django-tinymce-4/",
77
"author": "ITCase <[email protected]> (http://www.itcase.pro/)",
88
"repository": {
@@ -15,10 +15,12 @@
1515
},
1616
"devDependencies": {
1717
"autoprefixer": "^8.1.0",
18+
"chalk": "^2.4.1",
1819
"eslint": "^4.18.2",
1920
"eslint-config-standard": "^11.0.0",
2021
"eslint-plugin-promise": "^3.7.0",
2122
"eslint-plugin-standard": "^3.0.1",
23+
"fancy-log": "^1.3.2",
2224
"gulp": "^4.0.0",
2325
"gulp-batch": "~1.0.5",
2426
"gulp-concat": "^2.6.1",
@@ -31,7 +33,6 @@
3133
"gulp-plumber": "^1.2.0",
3234
"gulp-postcss": "^7.0.1",
3335
"gulp-sourcemaps": "^2.6.4",
34-
"gulp-util": "^3.0.8",
3536
"gulp-watch": "^5.0.0",
3637
"postcss-calc": "^6.0.1",
3738
"postcss-color-function": "^4.0.1",
@@ -44,6 +45,7 @@
4445
"postcss-reporter": "^5.0.0",
4546
"stylelint": "^9.1.3",
4647
"stylelint-config-standard": "^18.2.0",
48+
"stylelint-order": "^0.8.1",
4749
"vinyl-map": "^1.0.2",
4850
"yargs": "^11.0.0"
4951
},

tinymce_4/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = '0.0.21'
3+
__version__ = '0.0.22'

tinymce_4/static/tinymce_4/settings/full.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ if (typeof tinySettings === 'object') {
2020
if (typeof languageUrl === 'string') {
2121
tinySettings.language_url = languageUrl
2222
}
23+
if (typeof tableClassList === 'object') {
24+
tinySettings.table_class_list = imageClassList;
25+
}
2326
if (typeof styleFormats === 'object') {
2427
tinySettings.style_formats = styleFormats.concat(customStyleFormats);
2528
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
var imageClassList = [
1+
var tableClassList = [
22
{
33
title: 'None', value: ''
4-
}, {
5-
title: 'Open in modal window',
6-
value: 'image_action_open-popup'
74
}
85
]

tinymce_4/static/tinymce_4/tinymce/.bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
".npmignore",
1919
"changelog.txt"
2020
],
21-
"version": "4.7.9",
22-
"_release": "4.7.9",
21+
"version": "4.7.12",
22+
"_release": "4.7.12",
2323
"_resolution": {
2424
"type": "version",
25-
"tag": "4.7.9",
26-
"commit": "3edc2e2b270fb38e85db083b717ab57a092f77ab"
25+
"tag": "4.7.12",
26+
"commit": "914887eeeb9a28034045879defa09defccf7c68a"
2727
},
2828
"_source": "https://github.com/tinymce/tinymce-dist.git",
29-
"_target": "~4.7.9",
29+
"_target": "~4.7.12",
3030
"_originalSource": "tinymce"
3131
}

0 commit comments

Comments
 (0)