ckeditor-base64image 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +14 -0
- data/README.md +17 -0
- data/Rakefile +2 -0
- data/lib/ckeditor/base64image.rb +10 -0
- data/lib/ckeditor/base64image/version.rb +5 -0
- data/vendor/assets/images/ckeditor/plugins/base64image/icons/base64image.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/base64image/icons/hidpi/base64image.png +0 -0
- data/vendor/assets/javascripts/ckeditor/base64image.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/dialogs/base64image.js +503 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/af.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ar.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bg.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bn.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bs.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/cs.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/cy.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/da.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/de.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/el.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-au.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-gb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/es.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/et.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/eu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fa.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fr-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/gl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/gu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/he.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/id.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/is.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/it.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ja.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ka.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/km.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ko.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ku.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/lt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/lv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/mk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/mn.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ms.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/nb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/nl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/no.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pt-br.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ro.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ru.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/si.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sq.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sr-latn.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/th.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ug.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/vi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/zh-cn.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/lang/zh.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/base64image/plugin.js +57 -0
- metadata +140 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
/*
|
2
|
+
Translation from original CKEDITOR language files:
|
3
|
+
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
*/
|
6
|
+
CKEDITOR.plugins.setLang("base64image","zh",{
|
7
|
+
"alt":"替代文字",
|
8
|
+
"lockRatio":"固定比例",
|
9
|
+
"vSpace":"VSpace",
|
10
|
+
"hSpace":"HSpace",
|
11
|
+
"border":"框線"
|
12
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*
|
2
|
+
* Base64Image Plugin for CKEditor (http://github.com/nmmf/base64image)
|
3
|
+
* Created by ALL-INKL.COM - Neue Medien M�nnich - 04. Feb 2014
|
4
|
+
* Licensed under the terms of GPL, LGPL and MPL licenses.
|
5
|
+
*/
|
6
|
+
CKEDITOR.plugins.add("base64image", {
|
7
|
+
lang : ["af","ar","bg","bn","bs","ca","cs","cy","da","de","el","en","en-au","en-ca","en-gb","eo","es","et","eu","fa","fi","fo","fr","fr-ca","gl","gu","he","hi","hr","hu","id","is","it","ja","ka","km","ko","ku","lt","lv","mk","mn","ms","nb","nl","no","pl","pt","pt-br","ro","ru","si","sk","sl","sq","sr","sr-latn","sv","th","tr","ug","uk","vi","zh","zh-cn"],
|
8
|
+
requires: "dialog",
|
9
|
+
icons : "base64image",
|
10
|
+
hidpi : true,
|
11
|
+
init : function(editor){
|
12
|
+
var pluginName = 'base64imageDialog';
|
13
|
+
|
14
|
+
editor.ui.addButton("base64image", {
|
15
|
+
label: editor.lang.common.image,
|
16
|
+
command: pluginName,
|
17
|
+
toolbar: "insert"
|
18
|
+
});
|
19
|
+
CKEDITOR.dialog.add(pluginName, this.path+"dialogs/base64image.js");
|
20
|
+
|
21
|
+
var allowed = 'img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}',
|
22
|
+
required = 'img[alt,src]';
|
23
|
+
|
24
|
+
editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName, {
|
25
|
+
allowedContent: allowed,
|
26
|
+
requiredContent: required,
|
27
|
+
contentTransformations: [
|
28
|
+
[ 'img{width}: sizeToStyle', 'img[width]: sizeToAttribute' ],
|
29
|
+
[ 'img{float}: alignmentToStyle', 'img[align]: alignmentToAttribute' ]
|
30
|
+
]
|
31
|
+
} ) );
|
32
|
+
editor.on("doubleclick", function(evt){
|
33
|
+
if(evt.data.element && !evt.data.element.isReadOnly() && evt.data.element.getName() === "img") {
|
34
|
+
evt.data.dialog = pluginName;
|
35
|
+
editor.getSelection().selectElement(evt.data.element);
|
36
|
+
}
|
37
|
+
});
|
38
|
+
if(editor.addMenuItem) {
|
39
|
+
editor.addMenuGroup("base64imageGroup");
|
40
|
+
editor.addMenuItem("base64imageItem", {
|
41
|
+
label: editor.lang.common.image,
|
42
|
+
icon: this.path+"icons/base64image.png",
|
43
|
+
command: pluginName,
|
44
|
+
group: "base64imageGroup"
|
45
|
+
});
|
46
|
+
}
|
47
|
+
if(editor.contextMenu) {
|
48
|
+
editor.contextMenu.addListener(function(element, selection) {
|
49
|
+
if(element && element.getName() === "img") {
|
50
|
+
editor.getSelection().selectElement(element);
|
51
|
+
return { base64imageItem: CKEDITOR.TRISTATE_ON };
|
52
|
+
}
|
53
|
+
return null;
|
54
|
+
});
|
55
|
+
}
|
56
|
+
}
|
57
|
+
});
|
metadata
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ckeditor-base64image
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Philipp Hansch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
33
|
+
description: Adds support for uploading images in ckeditor. Inserts them as base64
|
34
|
+
with the proper mimetype. Gem for https://github.com/nmmf/base64image
|
35
|
+
email:
|
36
|
+
- philipp.hansch@mobileeventguide.de
|
37
|
+
executables: []
|
38
|
+
extensions: []
|
39
|
+
extra_rdoc_files: []
|
40
|
+
files:
|
41
|
+
- LICENSE
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- lib/ckeditor/base64image.rb
|
45
|
+
- lib/ckeditor/base64image/version.rb
|
46
|
+
- vendor/assets/images/ckeditor/plugins/base64image/icons/base64image.png
|
47
|
+
- vendor/assets/images/ckeditor/plugins/base64image/icons/hidpi/base64image.png
|
48
|
+
- vendor/assets/javascripts/ckeditor/base64image.js
|
49
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/dialogs/base64image.js
|
50
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/af.js
|
51
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ar.js
|
52
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bg.js
|
53
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bn.js
|
54
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/bs.js
|
55
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ca.js
|
56
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/cs.js
|
57
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/cy.js
|
58
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/da.js
|
59
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/de.js
|
60
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/el.js
|
61
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-au.js
|
62
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-ca.js
|
63
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en-gb.js
|
64
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/en.js
|
65
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/eo.js
|
66
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/es.js
|
67
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/et.js
|
68
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/eu.js
|
69
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fa.js
|
70
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fi.js
|
71
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fo.js
|
72
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fr-ca.js
|
73
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/fr.js
|
74
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/gl.js
|
75
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/gu.js
|
76
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/he.js
|
77
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hi.js
|
78
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hr.js
|
79
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/hu.js
|
80
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/id.js
|
81
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/is.js
|
82
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/it.js
|
83
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ja.js
|
84
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ka.js
|
85
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/km.js
|
86
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ko.js
|
87
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ku.js
|
88
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/lt.js
|
89
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/lv.js
|
90
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/mk.js
|
91
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/mn.js
|
92
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ms.js
|
93
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/nb.js
|
94
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/nl.js
|
95
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/no.js
|
96
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pl.js
|
97
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pt-br.js
|
98
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/pt.js
|
99
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ro.js
|
100
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ru.js
|
101
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/si.js
|
102
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sk.js
|
103
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sl.js
|
104
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sq.js
|
105
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sr-latn.js
|
106
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sr.js
|
107
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/sv.js
|
108
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/th.js
|
109
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/tr.js
|
110
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/ug.js
|
111
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/uk.js
|
112
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/vi.js
|
113
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/zh-cn.js
|
114
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/lang/zh.js
|
115
|
+
- vendor/assets/javascripts/ckeditor/plugins/base64image/plugin.js
|
116
|
+
homepage: https://github.com/mobileeventguide/ckeditor-base64image
|
117
|
+
licenses:
|
118
|
+
- LGPL
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.4.4
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: Base64 images plugin for ckeditor
|
140
|
+
test_files: []
|