muck-contents 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/README.rdoc +5 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/app/controllers/muck/tiny_mce_controller.rb +9 -0
- data/app/helpers/tinymce_helper.rb +28 -8
- data/app/views/tiny_mce/_flickr_photo.html.erb +5 -0
- data/app/views/tiny_mce/_tiny_mce_messages_and_scripts_for.html.erb +6 -0
- data/app/views/tiny_mce/flickr.html.erb +35 -0
- data/config/muck_contents_routes.rb +1 -0
- data/muck-contents.gemspec +13 -3
- data/public/stylesheets/tinymce.css +1 -0
- data/test/rails_root/config/environment.rb +1 -0
- data/test/rails_root/config/{global_config.yml → global_config.sample.yml} +1 -0
- data/test/rails_root/config/initializers/mce_options.rb +2 -2
- data/test/rails_root/public/images/tinymce/flickr.gif +0 -0
- data/test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin.js +42 -0
- data/test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin_src.js +41 -0
- data/test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/js/functions.js +19 -0
- data/test/rails_root/public/stylesheets/tinymce.css +1 -0
- metadata +20 -3
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
@@ -19,6 +19,7 @@ Paste in the following:
|
|
19
19
|
config.gem "sanitize"
|
20
20
|
config.gem 'paperclip'
|
21
21
|
config.gem 'tiny_mce'
|
22
|
+
config.gem 'fleakr'
|
22
23
|
config.gem "uploader"
|
23
24
|
config.gem "babelphish"
|
24
25
|
config.gem 'muck-engine', :lib => 'muck_engine'
|
@@ -43,6 +44,7 @@ be sure to set content_css to any css files you want to have show up in your tin
|
|
43
44
|
enable_auto_translations: true
|
44
45
|
content_enable_solr: false
|
45
46
|
content_css: ['/stylesheets/reset.css', '/stylesheets/styles.css']
|
47
|
+
flickr_api_key: #get from www.flickr.com/services/api/misc.api_keys.html
|
46
48
|
|
47
49
|
=== Initializer
|
48
50
|
Running rake muck:contents:sync will copy all the needed javascript, image and css files into your project. It will also create an initializer called mce_options.rb. That file
|
@@ -221,6 +223,8 @@ NOTE: you must define icon, thumb, small, medium and large as styles. They can
|
|
221
223
|
|
222
224
|
end
|
223
225
|
|
224
|
-
|
226
|
+
== Testing
|
227
|
+
This gem uses a full rails application in the test directory for testing and development. By default there isn't a global_config.yml setup.
|
228
|
+
Use global_config.sample.yml to set one up.
|
225
229
|
|
226
230
|
Copyright (c) 2009 Tatemae, released under the MIT license
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.11
|
@@ -28,6 +28,15 @@ class Muck::TinyMceController < ApplicationController
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
def tiny_mce_flickr
|
32
|
+
@body_tag = 'flickr'
|
33
|
+
Fleakr.api_key = GlobalConfig.flickr_api_key
|
34
|
+
@photos = Fleakr.search(params[:search]) unless params[:search].blank?
|
35
|
+
respond_to do |format|
|
36
|
+
format.html { render :template => 'tiny_mce/flickr'}
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
31
40
|
def images_for_content
|
32
41
|
@parent = current_user if @parent.blank?
|
33
42
|
@images = @parent.uploads.images.paginate(:page => @page, :per_page => @per_page, :order => 'created_at desc')
|
@@ -8,19 +8,23 @@ module TinymceHelper
|
|
8
8
|
# tiny_mce_images_height height of image dialog. Default is 540
|
9
9
|
def mce_fields(parent, options = {})
|
10
10
|
parent_params = make_muck_parent_fields(parent) || {}
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
files_path = tiny_mce_files_url(parent_params)
|
12
|
+
images_path = tiny_mce_images_url(parent_params)
|
13
|
+
links_path = tiny_mce_links_url(parent_params)
|
14
|
+
flickr_path = tiny_mce_flickr_url(parent_params)
|
14
15
|
|
15
|
-
%Q{<input id="tiny_mce_files_path" type="hidden" value="#{
|
16
|
+
%Q{<input id="tiny_mce_files_path" type="hidden" value="#{files_path}">
|
16
17
|
<input id="tiny_mce_files_width" type="hidden" value="#{options[:tiny_mce_files_width] || 675}">
|
17
18
|
<input id="tiny_mce_files_height" type="hidden" value="#{options[:tiny_mce_files_height] || 540}">
|
18
|
-
<input id="tiny_mce_images_path" type="hidden" value="#{
|
19
|
+
<input id="tiny_mce_images_path" type="hidden" value="#{images_path}">
|
19
20
|
<input id="tiny_mce_images_width" type="hidden" value="#{options[:tiny_mce_images_width] || 675}">
|
20
21
|
<input id="tiny_mce_images_height" type="hidden" value="#{options[:tiny_mce_images_height] || 560}">
|
21
|
-
<input id="tiny_mce_links_path" type="hidden" value="#{
|
22
|
-
<input id="tiny_mce_links_width" type="hidden" value="#{options[:
|
23
|
-
<input id="tiny_mce_links_height" type="hidden" value="#{options[:
|
22
|
+
<input id="tiny_mce_links_path" type="hidden" value="#{links_path}">
|
23
|
+
<input id="tiny_mce_links_width" type="hidden" value="#{options[:tiny_mce_links_width] || 480}">
|
24
|
+
<input id="tiny_mce_links_height" type="hidden" value="#{options[:tiny_mce_links_height] || 480}">
|
25
|
+
<input id="tiny_mce_flickr_path" type="hidden" value="#{flickr_path}">
|
26
|
+
<input id="tiny_mce_flickr_width" type="hidden" value="#{options[:tiny_mce_flickr_width] || 675}">
|
27
|
+
<input id="tiny_mce_flickr_height" type="hidden" value="#{options[:tiny_mce_flickr_height] || 675}">}
|
24
28
|
end
|
25
29
|
|
26
30
|
# Output a form capable of uploading files to the server.
|
@@ -56,4 +60,20 @@ module TinymceHelper
|
|
56
60
|
render :partial => 'tiny_mce/tiny_mce_scripts', :locals => options
|
57
61
|
end
|
58
62
|
|
63
|
+
# Adds fields for outputing messages related to the tiny mce editor.
|
64
|
+
# This method is used instead of tiny_mce_scripts if no customization of message fields
|
65
|
+
# is required.
|
66
|
+
# mce_id: id of tiny mce editor
|
67
|
+
# parent: parent object for which to build tiny mce editor
|
68
|
+
def tiny_mce_messages_and_scripts_for(mce_id, parent)
|
69
|
+
form_id = "#{parent.dom_id}_content_form"
|
70
|
+
message_container_id = "#{parent.dom_id}_message_container"
|
71
|
+
message_id = "#{parent.dom_id}_message"
|
72
|
+
render :partial => 'tiny_mce/tiny_mce_messages_and_scripts_for', :locals => { :mce_id => mce_id,
|
73
|
+
:form_id => form_id,
|
74
|
+
:message_container_id => message_container_id,
|
75
|
+
:message_id => message_id }
|
76
|
+
end
|
77
|
+
|
78
|
+
|
59
79
|
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div id="<%= message_container_id %>" class="help-box" style="display:none;">
|
2
|
+
<div id="flashMessage" class="message">
|
3
|
+
<div id="<%= message_id %>" class="notice message"></div>
|
4
|
+
</div>
|
5
|
+
</div>
|
6
|
+
<%= tiny_mce_scripts(:form_id => form_id, :mce_id => mce_id, :message_container_id => message_container_id, :message_id => message_id) -%>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<form name="insert_image" id="insert_image" onsubmit="ImageDialog.insert();return false;" action="#">
|
2
|
+
<div class="panel_wrapper">
|
3
|
+
<div id="dynamic_select_panel" class="panel current" style='overflow:auto'>
|
4
|
+
<fieldset>
|
5
|
+
<legend>Available Images - Click to Add</legend>
|
6
|
+
<ul id="flickr-list" class="image-list">
|
7
|
+
<%= render :partial => 'tiny_mce/flickr_photo', :collection => @photos -%>
|
8
|
+
</ul>
|
9
|
+
</fieldset>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="mceActionPanel">
|
15
|
+
<div style="float: left">
|
16
|
+
<input type="button" id="insert" name="insert" value="{#insert}" onclick="ImageDialog.insert();" />
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div style="float: right">
|
20
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</form>
|
24
|
+
|
25
|
+
<% content_for :head do -%>
|
26
|
+
<%= javascript_include_tag 'tiny_mce/plugins/muckflickr/js/functions.js' -%>
|
27
|
+
<% end -%>
|
28
|
+
<script language="javascript" type="text/javascript">
|
29
|
+
jQuery(document).ready(function() {
|
30
|
+
jQuery('.image-container').click(function() {
|
31
|
+
jQuery(this).toggleClass('highlight');
|
32
|
+
return false;
|
33
|
+
});
|
34
|
+
});
|
35
|
+
</script>
|
@@ -3,6 +3,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
3
3
|
map.tiny_mce_files '/tiny_mce_files', :controller => 'muck/tiny_mce', :action => 'tiny_mce_files'
|
4
4
|
map.tiny_mce_images '/tiny_mce_images', :controller => 'muck/tiny_mce', :action => 'tiny_mce_images'
|
5
5
|
map.tiny_mce_links '/tiny_mce_links', :controller => 'muck/tiny_mce', :action => 'tiny_mce_links'
|
6
|
+
map.tiny_mce_flickr '/tiny_mce_flickr', :controller => 'muck/tiny_mce', :action => 'tiny_mce_flickr'
|
6
7
|
|
7
8
|
map.images_for_content '/images_for_content', :controller => 'muck/tiny_mce', :action => 'images_for_content'
|
8
9
|
map.files_for_content '/files_for_content', :controller => 'muck/tiny_mce', :action => 'files_for_content'
|
data/muck-contents.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-contents}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-30}
|
13
13
|
s.email = %q{justin@tatemae.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
@@ -33,8 +33,11 @@ Gem::Specification.new do |s|
|
|
33
33
|
"app/views/contents/new.html.erb",
|
34
34
|
"app/views/contents/show.html.erb",
|
35
35
|
"app/views/layouts/tiny_mce.html.erb",
|
36
|
+
"app/views/tiny_mce/_flickr_photo.html.erb",
|
37
|
+
"app/views/tiny_mce/_tiny_mce_messages_and_scripts_for.html.erb",
|
36
38
|
"app/views/tiny_mce/_tiny_mce_scripts.html.erb",
|
37
39
|
"app/views/tiny_mce/files.html.erb",
|
40
|
+
"app/views/tiny_mce/flickr.html.erb",
|
38
41
|
"app/views/tiny_mce/images.html.erb",
|
39
42
|
"app/views/tiny_mce/links.html.erb",
|
40
43
|
"config/initializers/mce_options.rb",
|
@@ -1410,7 +1413,7 @@ Gem::Specification.new do |s|
|
|
1410
1413
|
"test/rails_root/config/environments/development.rb",
|
1411
1414
|
"test/rails_root/config/environments/production.rb",
|
1412
1415
|
"test/rails_root/config/environments/test.rb",
|
1413
|
-
"test/rails_root/config/global_config.yml",
|
1416
|
+
"test/rails_root/config/global_config.sample.yml",
|
1414
1417
|
"test/rails_root/config/initializers/inflections.rb",
|
1415
1418
|
"test/rails_root/config/initializers/mce_options.rb",
|
1416
1419
|
"test/rails_root/config/initializers/mime_types.rb",
|
@@ -1550,6 +1553,7 @@ Gem::Specification.new do |s|
|
|
1550
1553
|
"test/rails_root/public/images/rails.png",
|
1551
1554
|
"test/rails_root/public/images/spinner.gif",
|
1552
1555
|
"test/rails_root/public/images/sprites.png",
|
1556
|
+
"test/rails_root/public/images/tinymce/flickr.gif",
|
1553
1557
|
"test/rails_root/public/images/tinymce/sample.gif",
|
1554
1558
|
"test/rails_root/public/images/tinymce/upload.gif",
|
1555
1559
|
"test/rails_root/public/javascripts/application.js",
|
@@ -2153,6 +2157,9 @@ Gem::Specification.new do |s|
|
|
2153
2157
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/editor_plugin_src.js",
|
2154
2158
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/js/functions.js",
|
2155
2159
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/langs/en_dlg.js",
|
2160
|
+
"test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin.js",
|
2161
|
+
"test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin_src.js",
|
2162
|
+
"test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/js/functions.js",
|
2156
2163
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js",
|
2157
2164
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js",
|
2158
2165
|
"test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/image.htm",
|
@@ -3103,6 +3110,7 @@ Gem::Specification.new do |s|
|
|
3103
3110
|
s.add_runtime_dependency(%q<friendly_id>, [">= 0"])
|
3104
3111
|
s.add_runtime_dependency(%q<uploader>, [">= 0"])
|
3105
3112
|
s.add_runtime_dependency(%q<tiny_mce>, [">= 0"])
|
3113
|
+
s.add_runtime_dependency(%q<fleakr>, [">= 0"])
|
3106
3114
|
else
|
3107
3115
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
3108
3116
|
s.add_dependency(%q<muck-users>, [">= 0"])
|
@@ -3113,6 +3121,7 @@ Gem::Specification.new do |s|
|
|
3113
3121
|
s.add_dependency(%q<friendly_id>, [">= 0"])
|
3114
3122
|
s.add_dependency(%q<uploader>, [">= 0"])
|
3115
3123
|
s.add_dependency(%q<tiny_mce>, [">= 0"])
|
3124
|
+
s.add_dependency(%q<fleakr>, [">= 0"])
|
3116
3125
|
end
|
3117
3126
|
else
|
3118
3127
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
@@ -3124,5 +3133,6 @@ Gem::Specification.new do |s|
|
|
3124
3133
|
s.add_dependency(%q<friendly_id>, [">= 0"])
|
3125
3134
|
s.add_dependency(%q<uploader>, [">= 0"])
|
3126
3135
|
s.add_dependency(%q<tiny_mce>, [">= 0"])
|
3136
|
+
s.add_dependency(%q<fleakr>, [">= 0"])
|
3127
3137
|
end
|
3128
3138
|
end
|
@@ -18,6 +18,7 @@ input.submit{width:auto;margin:0;}
|
|
18
18
|
.pagination a{border:1px solid #7DA807;color:#7DA807;margin-right:.3em;padding:.3em;}
|
19
19
|
.pagination a:hover{background:#7DA807;border:1px solid #7DA807;color:#ffffff;}
|
20
20
|
.pagination a.active{background:#1EA2C1;border:none;color:#ffffff;}
|
21
|
+
.highlight img{border:solid 3px #ff0000;}
|
21
22
|
/*file dialog*/
|
22
23
|
ul.file-list{list-style:none;margin:0;padding:0;}
|
23
24
|
ul.file-list li.selected a img{border:2px solid red;}
|
@@ -23,7 +23,7 @@ GlobalConfig.advanced_mce_options = {
|
|
23
23
|
bold italic underline strikethrough separator
|
24
24
|
justifyleft justifycenter justifyright indent outdent separator
|
25
25
|
bullist numlist separator
|
26
|
-
link unlink image file media anchor separator
|
26
|
+
link unlink image flickr file media anchor separator
|
27
27
|
template visualaid separator
|
28
28
|
fullscreen code},
|
29
29
|
:theme_advanced_buttons2 => %w{styleprops styleselect separator
|
@@ -33,7 +33,7 @@ GlobalConfig.advanced_mce_options = {
|
|
33
33
|
sub sup charmap },
|
34
34
|
:theme_advanced_buttons3 => %w{}, #bramus_cssextras_classes bramus_cssextras_ids
|
35
35
|
#:theme_advanced_buttons3 => %w{cleanup code insertdate inserttime removeformat insertlayer},
|
36
|
-
:plugins => %w{ paste media preview inlinepopups safari save searchreplace table style template fullscreen print autosave muckimage mucklink},
|
36
|
+
:plugins => %w{ paste media preview inlinepopups safari save searchreplace table style template fullscreen print autosave muckimage mucklink muckflickr},
|
37
37
|
# codehighlighting
|
38
38
|
# spellchecker,pagebreak,layer,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,
|
39
39
|
# contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template
|
Binary file
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* @author Tatamae
|
3
|
+
* @copyright Copyright © 2009, Tatemae.
|
4
|
+
*/
|
5
|
+
(function() {
|
6
|
+
tinymce.create('tinymce.plugins.muckFlickr', {
|
7
|
+
init : function(ed, url) {
|
8
|
+
// Register commands
|
9
|
+
ed.addCommand('muckFlickr', function() {
|
10
|
+
var e = ed.selection.getNode();
|
11
|
+
// Internal file object like a flash placeholder
|
12
|
+
if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
|
13
|
+
return;
|
14
|
+
ed.windowManager.open({
|
15
|
+
file : jQuery('#tiny_mce_flickr_path').val(),
|
16
|
+
width : parseInt(jQuery('#tiny_mce_flickr_width').val()) + parseInt(ed.getLang('muckflickr.delta_width', 0)),
|
17
|
+
height : parseInt(jQuery('#tiny_mce_flickr_height').val()) + parseInt(ed.getLang('muckflickr.delta_height', 0)),
|
18
|
+
inline : 1
|
19
|
+
}, {
|
20
|
+
search_string : ed.selection.getContent({format : 'text'}),
|
21
|
+
plugin_url : url
|
22
|
+
});
|
23
|
+
});
|
24
|
+
// Register button
|
25
|
+
ed.addButton('flickr', {
|
26
|
+
title : 'Flickr',
|
27
|
+
cmd : 'muckFlickr',
|
28
|
+
image : '/images/tinymce/flickr.gif'
|
29
|
+
});
|
30
|
+
},
|
31
|
+
getInfo : function() {
|
32
|
+
return {
|
33
|
+
longname : 'Flickr in muck',
|
34
|
+
author : 'Tatemae',
|
35
|
+
authorurl : 'http://Tatemae.com',
|
36
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
37
|
+
};
|
38
|
+
}
|
39
|
+
});
|
40
|
+
// Register plugin
|
41
|
+
tinymce.PluginManager.add('muckflickr', tinymce.plugins.muckFlickr);
|
42
|
+
})();
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* @author Tatamae
|
3
|
+
* @copyright Copyright © 2009, Tatemae.
|
4
|
+
*/
|
5
|
+
(function() {
|
6
|
+
tinymce.create('tinymce.plugins.muckFlickr', {
|
7
|
+
init : function(ed, url) {
|
8
|
+
// Register commands
|
9
|
+
ed.addCommand('muckFlickr', function() {
|
10
|
+
var e = ed.selection.getNode();
|
11
|
+
// Internal file object like a flash placeholder
|
12
|
+
if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
|
13
|
+
return;
|
14
|
+
ed.windowManager.open({
|
15
|
+
file : jQuery('#tiny_mce_flickr_path').val() + '?search=' + ed.selection.getContent({format : 'text'}),
|
16
|
+
width : parseInt(jQuery('#tiny_mce_flickr_width').val()) + parseInt(ed.getLang('muckflickr.delta_width', 0)),
|
17
|
+
height : parseInt(jQuery('#tiny_mce_flickr_height').val()) + parseInt(ed.getLang('muckflickr.delta_height', 0)),
|
18
|
+
inline : 1
|
19
|
+
}, {
|
20
|
+
plugin_url : url
|
21
|
+
});
|
22
|
+
});
|
23
|
+
// Register button
|
24
|
+
ed.addButton('flickr', {
|
25
|
+
title : 'Flickr',
|
26
|
+
cmd : 'muckFlickr',
|
27
|
+
image : '/images/tinymce/flickr.gif'
|
28
|
+
});
|
29
|
+
},
|
30
|
+
getInfo : function() {
|
31
|
+
return {
|
32
|
+
longname : 'Flickr in muck',
|
33
|
+
author : 'Tatemae',
|
34
|
+
authorurl : 'http://Tatemae.com',
|
35
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
36
|
+
};
|
37
|
+
}
|
38
|
+
});
|
39
|
+
// Register plugin
|
40
|
+
tinymce.PluginManager.add('muckflickr', tinymce.plugins.muckFlickr);
|
41
|
+
})();
|
@@ -0,0 +1,19 @@
|
|
1
|
+
tinyMCEPopup.requireLangPack();
|
2
|
+
|
3
|
+
var MuckFlickrDialog = {
|
4
|
+
init : function() {
|
5
|
+
var selected_text = tinyMCEPopup.editor.selection.getContent({format : 'text'});
|
6
|
+
},
|
7
|
+
insert : function() {
|
8
|
+
selected_text = tinyMCEPopup.editor.selection.getContent({format : 'text'})
|
9
|
+
if(selected_text.length > 3){
|
10
|
+
return_text = selected_text + document.getElementById("result_html_id").value;
|
11
|
+
}else{
|
12
|
+
return_text = document.getElementById("result_html_id").value;
|
13
|
+
}
|
14
|
+
tinyMCEPopup.editor.execCommand('mceInsertContent', false, return_text);
|
15
|
+
tinyMCEPopup.close();
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
tinyMCEPopup.onInit.add(MuckFlickrDialog.init, MuckFlickrDialog);
|
@@ -18,6 +18,7 @@ input.submit{width:auto;margin:0;}
|
|
18
18
|
.pagination a{border:1px solid #7DA807;color:#7DA807;margin-right:.3em;padding:.3em;}
|
19
19
|
.pagination a:hover{background:#7DA807;border:1px solid #7DA807;color:#ffffff;}
|
20
20
|
.pagination a.active{background:#1EA2C1;border:none;color:#ffffff;}
|
21
|
+
.highlight img{border:solid 3px #ff0000;}
|
21
22
|
/*file dialog*/
|
22
23
|
ul.file-list{list-style:none;margin:0;padding:0;}
|
23
24
|
ul.file-list li.selected a img{border:2px solid red;}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-contents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-11-
|
13
|
+
date: 2009-11-30 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -103,6 +103,16 @@ dependencies:
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: "0"
|
105
105
|
version:
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: fleakr
|
108
|
+
type: :runtime
|
109
|
+
version_requirement:
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: "0"
|
115
|
+
version:
|
106
116
|
description:
|
107
117
|
email: justin@tatemae.com
|
108
118
|
executables: []
|
@@ -130,8 +140,11 @@ files:
|
|
130
140
|
- app/views/contents/new.html.erb
|
131
141
|
- app/views/contents/show.html.erb
|
132
142
|
- app/views/layouts/tiny_mce.html.erb
|
143
|
+
- app/views/tiny_mce/_flickr_photo.html.erb
|
144
|
+
- app/views/tiny_mce/_tiny_mce_messages_and_scripts_for.html.erb
|
133
145
|
- app/views/tiny_mce/_tiny_mce_scripts.html.erb
|
134
146
|
- app/views/tiny_mce/files.html.erb
|
147
|
+
- app/views/tiny_mce/flickr.html.erb
|
135
148
|
- app/views/tiny_mce/images.html.erb
|
136
149
|
- app/views/tiny_mce/links.html.erb
|
137
150
|
- config/initializers/mce_options.rb
|
@@ -1507,7 +1520,7 @@ files:
|
|
1507
1520
|
- test/rails_root/config/environments/development.rb
|
1508
1521
|
- test/rails_root/config/environments/production.rb
|
1509
1522
|
- test/rails_root/config/environments/test.rb
|
1510
|
-
- test/rails_root/config/global_config.yml
|
1523
|
+
- test/rails_root/config/global_config.sample.yml
|
1511
1524
|
- test/rails_root/config/initializers/inflections.rb
|
1512
1525
|
- test/rails_root/config/initializers/mce_options.rb
|
1513
1526
|
- test/rails_root/config/initializers/mime_types.rb
|
@@ -1647,6 +1660,7 @@ files:
|
|
1647
1660
|
- test/rails_root/public/images/rails.png
|
1648
1661
|
- test/rails_root/public/images/spinner.gif
|
1649
1662
|
- test/rails_root/public/images/sprites.png
|
1663
|
+
- test/rails_root/public/images/tinymce/flickr.gif
|
1650
1664
|
- test/rails_root/public/images/tinymce/sample.gif
|
1651
1665
|
- test/rails_root/public/images/tinymce/upload.gif
|
1652
1666
|
- test/rails_root/public/javascripts/application.js
|
@@ -2250,6 +2264,9 @@ files:
|
|
2250
2264
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/editor_plugin_src.js
|
2251
2265
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/js/functions.js
|
2252
2266
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckfile/langs/en_dlg.js
|
2267
|
+
- test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin.js
|
2268
|
+
- test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/editor_plugin_src.js
|
2269
|
+
- test/rails_root/public/javascripts/tiny_mce/plugins/muckflickr/js/functions.js
|
2253
2270
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
|
2254
2271
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
|
2255
2272
|
- test/rails_root/public/javascripts/tiny_mce/plugins/muckimage/image.htm
|