-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
226,531 additions
and
158,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "django-tinymce-4", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"homepage": "https://github.com/ITCase-django/django-tinymce-4", | ||
"authors": [ | ||
"ITCase <[email protected]>" | ||
|
@@ -15,6 +15,6 @@ | |
"tests" | ||
], | ||
"dependencies": { | ||
"tinymce": "~4.4.3" | ||
"tinymce": "~4.7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "django-tinymce-4", | ||
"title": "Integrate TinyMCE4 in Django projects", | ||
"description": "", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"homepage": "http://www.github.com/ITCase-django/django-tinymce-4/", | ||
"author": "ITCase <[email protected]> (http://www.itcase.pro/)", | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
__version__ = '0.0.18' | ||
__version__ = '0.0.19' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* global tinymce */ | ||
|
||
tinymce.PluginManager.add('insertzoomimage', function (editor, url) { | ||
function openDialog () { | ||
const selfData = tinymce.activeEditor.selection.getNode() | ||
editor.windowManager.open({ | ||
title: 'Insert Zoomable Image', | ||
body: [ | ||
{ | ||
name: 'src', | ||
type: 'filepicker', | ||
filetype: 'image', | ||
label: 'Image', | ||
autofocus: true, | ||
value: selfData.getAttribute('data-mce-src') || null | ||
}, | ||
{ | ||
name: 'zoomableSrc', | ||
type: 'filepicker', | ||
filetype: 'image', | ||
label: 'Zoomable Image', | ||
value: selfData.getAttribute('data-image-path') || null | ||
} | ||
], | ||
onSubmit: (e) => { | ||
editor.insertContent( | ||
'<img src="' + e.data.src + '"' + 'data-image-path="' + e.data.zoomableSrc + '"' + 'class="image_action_open-popup" />' | ||
) | ||
} | ||
}) | ||
} | ||
|
||
editor.addMenuItem('insertzoomimage', { | ||
text: 'Insert zoomable image', | ||
context: 'insert', | ||
icon: 'browse', | ||
onClick: () => { | ||
openDialog() | ||
} | ||
}) | ||
|
||
editor.addButton('insertzoomimage', { | ||
icon: 'browse', | ||
tooltip: 'Insert zoomable image', | ||
stateSelector: 'img', | ||
onClick: () => { | ||
openDialog() | ||
} | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tinymce_4/static/tinymce_4/settings/full/custom_style_formats.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
var customStyleFormats = [ | ||
{ | ||
title: 'Custom Title', | ||
items: [ | ||
{ title: 'Custom Style', selector: 'table' } | ||
] | ||
} | ||
// { | ||
// title: 'Custom Title', | ||
// items: [ | ||
// { title: 'Custom Style', selector: 'table' } | ||
// ] | ||
// } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
var externalPlugins = { | ||
//'testing': 'http://www.testing.com/plugin.min.js', | ||
'insertzoomimage': '/static/tinymce_4/plugins/insertZoomImage.js' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var imageClassList = [ | ||
{ | ||
title: 'None', value: '' | ||
}, { | ||
title: 'Open in modal window', | ||
value: 'image_action_open-popup' | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var languageUrl = '' | ||
// '/static/tinymce_4/langs/ru.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var plugins = [ | ||
'advlist anchor autolink link image lists charmap print preview hr anchor pagebreak spellchecker', | ||
'insertzoomimage advlist anchor autolink link image lists charmap print preview hr anchor pagebreak spellchecker', | ||
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking', | ||
'save table contextmenu directionality emoticons template paste textcolor' | ||
] |
Oops, something went wrong.