runtastic-tiny_mce_curblyadvimage 0.2.4
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/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/config/tiny_mce.yml +0 -0
- data/lib/assets/plugins/curblyadvimage/css/advimage.css +84 -0
- data/lib/assets/plugins/curblyadvimage/editor_plugin.js +52 -0
- data/lib/assets/plugins/curblyadvimage/editor_plugin_src.js +52 -0
- data/lib/assets/plugins/curblyadvimage/image.htm +270 -0
- data/lib/assets/plugins/curblyadvimage/img/sample.gif +0 -0
- data/lib/assets/plugins/curblyadvimage/js/functions.js +499 -0
- data/lib/assets/plugins/curblyadvimage/langs/en.js +3 -0
- data/lib/assets/plugins/curblyadvimage/langs/en_dlg.js +43 -0
- data/lib/tiny_mce_curblyadvimage.rb +23 -0
- data/test/helper.rb +10 -0
- data/test/test_tiny_mce_curblyadvimage.rb +7 -0
- data/tiny_mce_curblyadvimage.gemspec +63 -0
- metadata +100 -0
data/.document
ADDED
data/.gitignore
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2009 Steve Leung
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
= tiny_mce_curblyadvimage
|
|
2
|
+
|
|
3
|
+
Description goes here.
|
|
4
|
+
|
|
5
|
+
== Note on Patches/Pull Requests
|
|
6
|
+
|
|
7
|
+
* Fork the project.
|
|
8
|
+
* Make your feature addition or bug fix.
|
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
|
10
|
+
future version unintentionally.
|
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
|
14
|
+
|
|
15
|
+
== Copyright
|
|
16
|
+
|
|
17
|
+
Copyright (c) 2010 Steve Leung. See LICENSE for details.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
require 'jeweler'
|
|
6
|
+
Jeweler::Tasks.new do |gem|
|
|
7
|
+
gem.name = "tiny_mce_curblyadvimage"
|
|
8
|
+
gem.summary = %Q{Curbly Advanced Images for Tiny MCE}
|
|
9
|
+
gem.description = %Q{Curbly Advanced Images for Tiny MCE}
|
|
10
|
+
gem.email = "scyl88@gmail.com"
|
|
11
|
+
gem.homepage = "http://github.com/wakiki/tiny_mce_curblyadvimage"
|
|
12
|
+
gem.authors = ["Steve Leung"]
|
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
|
15
|
+
end
|
|
16
|
+
Jeweler::GemcutterTasks.new
|
|
17
|
+
rescue LoadError
|
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
require 'rake/testtask'
|
|
22
|
+
Rake::TestTask.new(:test) do |test|
|
|
23
|
+
test.libs << 'lib' << 'test'
|
|
24
|
+
test.pattern = 'test/**/test_*.rb'
|
|
25
|
+
test.verbose = true
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
begin
|
|
29
|
+
require 'rcov/rcovtask'
|
|
30
|
+
Rcov::RcovTask.new do |test|
|
|
31
|
+
test.libs << 'test'
|
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
|
33
|
+
test.verbose = true
|
|
34
|
+
end
|
|
35
|
+
rescue LoadError
|
|
36
|
+
task :rcov do
|
|
37
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
task :test => :check_dependencies
|
|
42
|
+
|
|
43
|
+
task :default => :test
|
|
44
|
+
|
|
45
|
+
require 'rake/rdoctask'
|
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
48
|
+
|
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
50
|
+
rdoc.title = "tiny_mce_curblyadvimage #{version}"
|
|
51
|
+
rdoc.rdoc_files.include('README*')
|
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
53
|
+
end
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.2
|
data/config/tiny_mce.yml
ADDED
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#src_list, #over_list, #out_list {width:280px;}
|
|
2
|
+
.mceActionPanel {margin-top:7px;}
|
|
3
|
+
.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
|
|
4
|
+
.checkbox {border:0;}
|
|
5
|
+
.panel_wrapper div.current {height:245px;}
|
|
6
|
+
#prev {margin:0; border:1px solid #000; width:99%; height:150px; overflow:auto;}
|
|
7
|
+
#align, #classlist {width:150px;}
|
|
8
|
+
#width, #height {vertical-align:middle; width:50px; text-align:center;}
|
|
9
|
+
#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
|
|
10
|
+
#class_list {width:180px;}
|
|
11
|
+
input {width: 280px;}
|
|
12
|
+
input.submit {
|
|
13
|
+
width: auto;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
#constrain, #onmousemovecheck {width:auto;}
|
|
17
|
+
#id, #dir, #lang, #usemap, #longdesc {width:200px;}
|
|
18
|
+
|
|
19
|
+
ul.curblyadvimage_list {
|
|
20
|
+
list-style: none;
|
|
21
|
+
margin:0;
|
|
22
|
+
padding:0;
|
|
23
|
+
}
|
|
24
|
+
ul.curblyadvimage_list li {
|
|
25
|
+
display:block;
|
|
26
|
+
width: 75px;
|
|
27
|
+
float: left;
|
|
28
|
+
margin-right: 8px;
|
|
29
|
+
margin-bottom:5px;
|
|
30
|
+
}
|
|
31
|
+
ul.curblyadvimage_list li img {
|
|
32
|
+
width: 75px;
|
|
33
|
+
}
|
|
34
|
+
ul.curblyadvimage_list li a {
|
|
35
|
+
outline:none;
|
|
36
|
+
}
|
|
37
|
+
ul.curblyadvimage_list li.selected a img {
|
|
38
|
+
border: 2px solid red;
|
|
39
|
+
}
|
|
40
|
+
ul.curblyadvimage_list li .thumbs {
|
|
41
|
+
display:none;
|
|
42
|
+
background: #efefef;
|
|
43
|
+
position: absolute;
|
|
44
|
+
width:65px;
|
|
45
|
+
margin: 45px 5px 5px 25px;
|
|
46
|
+
border-right: 2px solid #666;
|
|
47
|
+
border-bottom: 2px solid #333;
|
|
48
|
+
border-top: 2px solid #efefef;
|
|
49
|
+
border-left: 2px solid #efefef;
|
|
50
|
+
}
|
|
51
|
+
ul.curblyadvimage_list li .thumbs a {
|
|
52
|
+
margin-bottom: 5px;
|
|
53
|
+
line-height: 1.5em;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
ul.curblyadvimage_list li .thumbs a {
|
|
57
|
+
text-decoration: underline;
|
|
58
|
+
}
|
|
59
|
+
ul.curblyadvimage_list li.selected .thumbs {
|
|
60
|
+
display:block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.right {
|
|
64
|
+
float:right;
|
|
65
|
+
}
|
|
66
|
+
.left {
|
|
67
|
+
float:left;
|
|
68
|
+
}
|
|
69
|
+
.clear {
|
|
70
|
+
clear:both;
|
|
71
|
+
}
|
|
72
|
+
.pagination a {
|
|
73
|
+
border: 1px solid #7DA807;
|
|
74
|
+
color: #7DA807;
|
|
75
|
+
margin-right: .3em;
|
|
76
|
+
padding: .3em; }
|
|
77
|
+
.pagination a:hover {
|
|
78
|
+
background: #7DA807;
|
|
79
|
+
border: 1px solid #7DA807;
|
|
80
|
+
color: #ffffff; }
|
|
81
|
+
.pagination a.active {
|
|
82
|
+
background: #1EA2C1;
|
|
83
|
+
border: none;
|
|
84
|
+
color: #ffffff; }
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
|
|
3
|
+
*
|
|
4
|
+
* @author Moxiecode
|
|
5
|
+
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
(function() {
|
|
9
|
+
// Load plugin specific language pack
|
|
10
|
+
tinymce.PluginManager.requireLangPack('curblyadvimage');
|
|
11
|
+
|
|
12
|
+
tinymce.create('tinymce.plugins.CurblyAdvancedImagePlugin', {
|
|
13
|
+
init : function(ed, url) {
|
|
14
|
+
// Register commands
|
|
15
|
+
ed.addCommand('mceCurblyAdvImage', function() {
|
|
16
|
+
var e = ed.selection.getNode();
|
|
17
|
+
|
|
18
|
+
// Internal image object like a flash placeholder
|
|
19
|
+
if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
|
|
20
|
+
return;
|
|
21
|
+
|
|
22
|
+
ed.windowManager.open({
|
|
23
|
+
file : url + '/image.htm',
|
|
24
|
+
width : 480 + parseInt(ed.getLang('curblyadvimage.delta_width', 0)),
|
|
25
|
+
height : 385 + parseInt(ed.getLang('curblyadvimage.delta_height', 0)),
|
|
26
|
+
inline : 1
|
|
27
|
+
}, {
|
|
28
|
+
plugin_url : url
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// Register buttons
|
|
33
|
+
ed.addButton('image', {
|
|
34
|
+
title : 'curblyadvimage.image_desc',
|
|
35
|
+
cmd : 'mceCurblyAdvImage'
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
getInfo : function() {
|
|
40
|
+
return {
|
|
41
|
+
longname : 'Curbly Advanced image',
|
|
42
|
+
author : 'Moxiecode Systems AB',
|
|
43
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
|
44
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
|
|
45
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Register plugin
|
|
51
|
+
tinymce.PluginManager.add('curblyadvimage', tinymce.plugins.CurblyAdvancedImagePlugin);
|
|
52
|
+
})();
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
|
|
3
|
+
*
|
|
4
|
+
* @author Moxiecode
|
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
(function() {
|
|
9
|
+
// Load plugin specific language pack
|
|
10
|
+
tinymce.PluginManager.requireLangPack('curblyadvimage');
|
|
11
|
+
|
|
12
|
+
tinymce.create('tinymce.plugins.CurblyAdvancedImagePlugin', {
|
|
13
|
+
init : function(ed, url) {
|
|
14
|
+
// Register commands
|
|
15
|
+
ed.addCommand('mceCurblyAdvImage', function() {
|
|
16
|
+
var e = ed.selection.getNode();
|
|
17
|
+
|
|
18
|
+
// Internal image object like a flash placeholder
|
|
19
|
+
if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
|
|
20
|
+
return;
|
|
21
|
+
|
|
22
|
+
ed.windowManager.open({
|
|
23
|
+
file : url + '/image.htm',
|
|
24
|
+
width : 480 + parseInt(ed.getLang('curblyadvimage.delta_width', 0)),
|
|
25
|
+
height : 385 + parseInt(ed.getLang('curblyadvimage.delta_height', 0)),
|
|
26
|
+
inline : 1
|
|
27
|
+
}, {
|
|
28
|
+
plugin_url : url
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// Register buttons
|
|
33
|
+
ed.addButton('image', {
|
|
34
|
+
title : 'curblyadvimage.image_desc',
|
|
35
|
+
cmd : 'mceCurblyAdvImage'
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
getInfo : function() {
|
|
40
|
+
return {
|
|
41
|
+
longname : 'Curbly Advanced image',
|
|
42
|
+
author : 'Moxiecode Systems AB',
|
|
43
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
|
44
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
|
|
45
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Register plugin
|
|
51
|
+
tinymce.PluginManager.add('curblyadvimage', tinymce.plugins.CurblyAdvancedImagePlugin);
|
|
52
|
+
})();
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
3
|
+
<head>
|
|
4
|
+
<title>{#advimage_dlg.dialog_title}</title>
|
|
5
|
+
<script language="javascript" type="text/javascript" src="../../../prototype.js"></script>
|
|
6
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
|
7
|
+
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
|
8
|
+
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
|
9
|
+
<script type="text/javascript" src="../../utils/validate.js"></script>
|
|
10
|
+
<script type="text/javascript" src="js/functions.js"></script>
|
|
11
|
+
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
|
|
12
|
+
<base target="_self" />
|
|
13
|
+
</head>
|
|
14
|
+
<body id="advimage" style="display: none">
|
|
15
|
+
|
|
16
|
+
<div id="image-upload">
|
|
17
|
+
<fieldset>
|
|
18
|
+
<legend>Upload New Image</legend>
|
|
19
|
+
<form id='image_upload_form' enctype="multipart/form-data" method="post" onsubmit="ts_onload(); return true;" target="html_editor_image_upload_frame">
|
|
20
|
+
<input class="input-file" id="image_uploaded_data" name="photo[uploaded_data]" size="30" type="file"/>
|
|
21
|
+
<input class="submit" name="commit" type="submit" value="Upload"/>
|
|
22
|
+
</form>
|
|
23
|
+
</fieldset>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<br />
|
|
27
|
+
|
|
28
|
+
<form onsubmit="ImageDialog.insert();return false;" action="#">
|
|
29
|
+
<div class="tabs">
|
|
30
|
+
<ul>
|
|
31
|
+
|
|
32
|
+
<li id="dynamic_select_tab" class="current"><span><a href="javascript:mcTabs.displayTab('dynamic_select_tab','dynamic_select_panel');" onmousedown="return false;">Uploaded Images</a></span></li>
|
|
33
|
+
<li id="general_tab"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
|
|
34
|
+
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
|
|
35
|
+
<!-- <li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li> -->
|
|
36
|
+
</ul>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="panel_wrapper">
|
|
40
|
+
|
|
41
|
+
<div id="dynamic_select_panel" class="panel current" style='overflow:auto'>
|
|
42
|
+
<fieldset>
|
|
43
|
+
<legend>Available Images</legend>
|
|
44
|
+
<script type="text/javascript">//<![CDATA[
|
|
45
|
+
new Ajax.Request("/manage_photos",
|
|
46
|
+
{asynchronous:true, evalScripts:true, method:'get'});
|
|
47
|
+
//]]></script>
|
|
48
|
+
|
|
49
|
+
<div id='dynamic_images_list'>
|
|
50
|
+
Loading Images...<br />
|
|
51
|
+
<img src='/images/spinner.gif'>
|
|
52
|
+
</div>
|
|
53
|
+
</fieldset>
|
|
54
|
+
</div>
|
|
55
|
+
<div id="general_panel" class="panel">
|
|
56
|
+
<fieldset>
|
|
57
|
+
<legend>{#advimage_dlg.general}</legend>
|
|
58
|
+
|
|
59
|
+
<table class="properties">
|
|
60
|
+
<tr>
|
|
61
|
+
<td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
|
|
62
|
+
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
|
|
63
|
+
<tr>
|
|
64
|
+
<td><input name="src" type="text" id="src" value="" onchange="ImageDialog.showPreviewImage(this.value);" /></td>
|
|
65
|
+
<td id="srcbrowsercontainer"> </td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table></td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td><label for="src_list">{#advimage_dlg.image_list}</label></td>
|
|
71
|
+
<td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"></select></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
|
|
75
|
+
<td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
|
|
79
|
+
<td colspan="2"><input id="title" name="title" type="text" value="" /></td>
|
|
80
|
+
</tr>
|
|
81
|
+
</table>
|
|
82
|
+
</fieldset>
|
|
83
|
+
|
|
84
|
+
<fieldset>
|
|
85
|
+
<legend>{#advimage_dlg.preview}</legend>
|
|
86
|
+
<div id="prev"></div>
|
|
87
|
+
</fieldset>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div id="appearance_panel" class="panel">
|
|
91
|
+
<fieldset>
|
|
92
|
+
<legend>{#advimage_dlg.tab_appearance}</legend>
|
|
93
|
+
|
|
94
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
|
95
|
+
<tr>
|
|
96
|
+
<td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
|
|
97
|
+
<td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
|
|
98
|
+
<option value="">{#not_set}</option>
|
|
99
|
+
<option value="baseline">{#advimage_dlg.align_baseline}</option>
|
|
100
|
+
<option value="top">{#advimage_dlg.align_top}</option>
|
|
101
|
+
<option value="middle">{#advimage_dlg.align_middle}</option>
|
|
102
|
+
<option value="bottom">{#advimage_dlg.align_bottom}</option>
|
|
103
|
+
<option value="text-top">{#advimage_dlg.align_texttop}</option>
|
|
104
|
+
<option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
|
|
105
|
+
<option value="left">{#advimage_dlg.align_left}</option>
|
|
106
|
+
<option value="right">{#advimage_dlg.align_right}</option>
|
|
107
|
+
</select>
|
|
108
|
+
</td>
|
|
109
|
+
<td rowspan="6" valign="top">
|
|
110
|
+
<div class="alignPreview">
|
|
111
|
+
<img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
|
|
112
|
+
Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
|
|
113
|
+
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
|
|
114
|
+
edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
|
|
115
|
+
erat volutpat.
|
|
116
|
+
</div>
|
|
117
|
+
</td>
|
|
118
|
+
</tr>
|
|
119
|
+
|
|
120
|
+
<tr>
|
|
121
|
+
<td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
|
|
122
|
+
<td nowrap="nowrap">
|
|
123
|
+
<input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x
|
|
124
|
+
<input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px
|
|
125
|
+
</td>
|
|
126
|
+
</tr>
|
|
127
|
+
|
|
128
|
+
<tr>
|
|
129
|
+
<td> </td>
|
|
130
|
+
<td><table border="0" cellpadding="0" cellspacing="0">
|
|
131
|
+
<tr>
|
|
132
|
+
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
|
133
|
+
<td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
|
|
134
|
+
</tr>
|
|
135
|
+
</table></td>
|
|
136
|
+
</tr>
|
|
137
|
+
|
|
138
|
+
<tr>
|
|
139
|
+
<td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
|
|
140
|
+
<td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
|
|
141
|
+
</td>
|
|
142
|
+
</tr>
|
|
143
|
+
|
|
144
|
+
<tr>
|
|
145
|
+
<td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
|
|
146
|
+
<td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
|
|
147
|
+
</tr>
|
|
148
|
+
|
|
149
|
+
<tr>
|
|
150
|
+
<td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
|
|
151
|
+
<td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
|
|
152
|
+
</tr>
|
|
153
|
+
|
|
154
|
+
<tr>
|
|
155
|
+
<td><label for="class_list">{#class_name}</label></td>
|
|
156
|
+
<td><select id="class_list" name="class_list"></select></td>
|
|
157
|
+
</tr>
|
|
158
|
+
|
|
159
|
+
<tr>
|
|
160
|
+
<td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
|
|
161
|
+
<td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
|
|
162
|
+
</tr>
|
|
163
|
+
|
|
164
|
+
<!-- <tr>
|
|
165
|
+
<td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
|
|
166
|
+
<td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
|
|
167
|
+
</tr> -->
|
|
168
|
+
</table>
|
|
169
|
+
</fieldset>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<!--
|
|
173
|
+
<div id="advanced_panel" class="panel">
|
|
174
|
+
<fieldset>
|
|
175
|
+
<legend>{#advimage_dlg.swap_image}</legend>
|
|
176
|
+
|
|
177
|
+
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" />
|
|
178
|
+
<label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
|
|
179
|
+
|
|
180
|
+
<table border="0" cellpadding="4" cellspacing="0" width="100%">
|
|
181
|
+
<tr>
|
|
182
|
+
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
|
|
183
|
+
<td><table border="0" cellspacing="0" cellpadding="0">
|
|
184
|
+
<tr>
|
|
185
|
+
<td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
|
|
186
|
+
<td id="onmouseoversrccontainer"> </td>
|
|
187
|
+
</tr>
|
|
188
|
+
</table></td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td><label for="over_list">{#advimage_dlg.image_list}</label></td>
|
|
192
|
+
<td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"></select></td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
|
|
196
|
+
<td class="column2"><table border="0" cellspacing="0" cellpadding="0">
|
|
197
|
+
<tr>
|
|
198
|
+
<td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
|
|
199
|
+
<td id="onmouseoutsrccontainer"> </td>
|
|
200
|
+
</tr>
|
|
201
|
+
</table></td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td><label for="out_list">{#advimage_dlg.image_list}</label></td>
|
|
205
|
+
<td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"></select></td>
|
|
206
|
+
</tr>
|
|
207
|
+
</table>
|
|
208
|
+
</fieldset>
|
|
209
|
+
|
|
210
|
+
<fieldset>
|
|
211
|
+
<legend>{#advimage_dlg.misc}</legend>
|
|
212
|
+
|
|
213
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
|
214
|
+
<tr>
|
|
215
|
+
<td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
|
|
216
|
+
<td><input id="id" name="id" type="text" value="" /></td>
|
|
217
|
+
</tr>
|
|
218
|
+
|
|
219
|
+
<tr>
|
|
220
|
+
<td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
|
|
221
|
+
<td>
|
|
222
|
+
<select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
|
|
223
|
+
<option value="">{#not_set}</option>
|
|
224
|
+
<option value="ltr">{#advimage_dlg.ltr}</option>
|
|
225
|
+
<option value="rtl">{#advimage_dlg.rtl}</option>
|
|
226
|
+
</select>
|
|
227
|
+
</td>
|
|
228
|
+
</tr>
|
|
229
|
+
|
|
230
|
+
<tr>
|
|
231
|
+
<td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
|
|
232
|
+
<td>
|
|
233
|
+
<input id="lang" name="lang" type="text" value="" />
|
|
234
|
+
</td>
|
|
235
|
+
</tr>
|
|
236
|
+
|
|
237
|
+
<tr>
|
|
238
|
+
<td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
|
|
239
|
+
<td>
|
|
240
|
+
<input id="usemap" name="usemap" type="text" value="" />
|
|
241
|
+
</td>
|
|
242
|
+
</tr>
|
|
243
|
+
|
|
244
|
+
<tr>
|
|
245
|
+
<td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
|
|
246
|
+
<td><table border="0" cellspacing="0" cellpadding="0">
|
|
247
|
+
<tr>
|
|
248
|
+
<td><input id="longdesc" name="longdesc" type="text" value="" /></td>
|
|
249
|
+
<td id="longdesccontainer"> </td>
|
|
250
|
+
</tr>
|
|
251
|
+
</table></td>
|
|
252
|
+
</tr>
|
|
253
|
+
</table>
|
|
254
|
+
</fieldset>
|
|
255
|
+
</div>
|
|
256
|
+
-->
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<div class="mceActionPanel">
|
|
260
|
+
<div style="float: left">
|
|
261
|
+
<input type="button" id="insert" name="insert" value="{#insert}" onclick="ImageDialog.insert();" />
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<div style="float: right">
|
|
265
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</form>
|
|
269
|
+
</body>
|
|
270
|
+
</html>
|