tiny_mce_plugin_imageselector 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.
@@ -4,7 +4,7 @@ body {
4
4
 
5
5
  #providers {
6
6
  float: left;
7
- width: 30%;
7
+ width: 25%;
8
8
  }
9
9
 
10
10
  #providers ul {
@@ -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: 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.2"}}});tinymce.PluginManager.add('imageselector',tinymce.plugins.ImageselectorPlugin)})();
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.2"
75
+ version : "0.3"
75
76
  };
76
77
  }
77
78
  });
@@ -1,4 +1,4 @@
1
1
  // left around for reference, not currently used
2
2
  tinyMCE.addI18n('en.imageselector',{
3
- desc : 'This is just a template button'
3
+ desc : 'Add image'
4
4
  });
@@ -14,5 +14,5 @@
14
14
  {{/sizes}}
15
15
  </ul>
16
16
 
17
- <div id="home-link"><a href="index.html">Back to Sources</a></div>
17
+ <div id="home-link"><a href="dialog.htm">Back to Sources</a></div>
18
18
  </div>
@@ -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="index.html">Back to Sources</a></div>
14
+ <div id="home-link"><a href="dialog.htm">Back to Sources</a></div>
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "tiny_mce_plugin_imageselector"
3
- s.version = "0.0.6"
3
+ s.version = "0.0.7"
4
4
  s.authors = ["Walter McGinnis"]
5
5
  s.email = "walter@katipo.co.nz"
6
6
  s.homepage = "http://github.com/kete/tiny_mce_plugin_imageselector"
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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-11 00:00:00 +13:00
18
+ date: 2011-10-12 00:00:00 +13:00
19
19
  default_executable:
20
20
  dependencies: []
21
21