tiny_mce_plugin_imageselector 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/assets/plugins/imageselector/README.md +4 -0
- data/lib/assets/plugins/imageselector/css/media_selector.css +1 -1
- data/lib/assets/plugins/imageselector/editor_plugin.js +1 -1
- data/lib/assets/plugins/imageselector/editor_plugin_src.js +2 -1
- data/lib/assets/plugins/imageselector/langs/en.js +1 -1
- data/lib/assets/plugins/imageselector/templates/result.hb +1 -1
- data/lib/assets/plugins/imageselector/templates/selection.hb +1 -1
- data/tiny_mce_plugin_imageselector.gemspec +1 -1
- metadata +4 -4
@@ -14,6 +14,10 @@ Copy the contents of this directory to directory called imageselector under your
|
|
14
14
|
|
15
15
|
You'll also need to set up JSON files for your image providers and the size you want. IMPORTANT! These are assumed to be under /javascripts/image_selector_config/ on your site. See https://github.com/kete/media_selector/blob/master/data/providers.json and https://github.com/kete/media_selector/blob/master/data/sizes.json for how (you'll need to adjust URLs, etc. to suit).
|
16
16
|
|
17
|
+
## Highly Recommended
|
18
|
+
|
19
|
+
When you configure TinyMCE, choose to use the 'inlinepopups' plugin and also dialog_type of "modal". I've found that IE and FireFox otherwise will not present the vertical scrollbar when you need it with image selector.
|
20
|
+
|
17
21
|
## Dependencies
|
18
22
|
|
19
23
|
TinyMCE provides the plugin API that we are integrating with.
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.PluginManager.requireLangPack('imageselector');tinymce.create('tinymce.plugins.ImageselectorPlugin',{init:function(ed,url){ed.addCommand('mceImageselector',function(){ed.windowManager.open({file:url+'/dialog.htm',width:900+parseInt(ed.getLang('imageselector.delta_width',0)),height:500+parseInt(ed.getLang('imageselector.delta_height',0)),inline:1,translate_i18n:
|
1
|
+
(function(){tinymce.PluginManager.requireLangPack('imageselector');tinymce.create('tinymce.plugins.ImageselectorPlugin',{init:function(ed,url){ed.addCommand('mceImageselector',function(){ed.windowManager.open({file:url+'/dialog.htm',width:900+parseInt(ed.getLang('imageselector.delta_width',0)),height:500+parseInt(ed.getLang('imageselector.delta_height',0)),resizable:true,inline:1,translate_i18n:false},{plugin_url:url})});ed.addButton('imageselector',{title:'imageselector.desc',cmd:'mceImageselector',image:url+'/img/imageselector.png'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('imageselector',n.nodeName=='IMG')})},createControl:function(n,cm){return null},getInfo:function(){return{longname:'Imageselector plugin',author:'Walter McGinnis',authorurl:'http://waltermcginnis.com',infourl:'https://github.com/kete/image_selector_tinymce_plugin',version:"0.3"}}});tinymce.PluginManager.add('imageselector',tinymce.plugins.ImageselectorPlugin)})();
|
@@ -25,6 +25,7 @@
|
|
25
25
|
file : url + '/dialog.htm',
|
26
26
|
width : 900 + parseInt(ed.getLang('imageselector.delta_width', 0)),
|
27
27
|
height : 500 + parseInt(ed.getLang('imageselector.delta_height', 0)),
|
28
|
+
resizable: true,
|
28
29
|
inline : 1,
|
29
30
|
translate_i18n: false
|
30
31
|
}, {
|
@@ -71,7 +72,7 @@
|
|
71
72
|
author : 'Walter McGinnis',
|
72
73
|
authorurl : 'http://waltermcginnis.com',
|
73
74
|
infourl : 'https://github.com/kete/image_selector_tinymce_plugin',
|
74
|
-
version : "0.
|
75
|
+
version : "0.3"
|
75
76
|
};
|
76
77
|
}
|
77
78
|
});
|
@@ -11,4 +11,4 @@
|
|
11
11
|
<textarea class="selection-embed"><img src="{{url}}" width="{{width}}" height="{{height}}" alt="{{alt}}"> by <a href="{{author_url}}">{{author_name}}</a></textarea>
|
12
12
|
|
13
13
|
</div>
|
14
|
-
<div id="home-link"><a href="
|
14
|
+
<div id="home-link"><a href="dialog.htm">Back to Sources</a></div>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_mce_plugin_imageselector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Walter McGinnis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-12 00:00:00 +13:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|