it-logica-application-backbone 1.4.2 → 1.4.3
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
@@ -1,33 +1,25 @@
|
|
1
1
|
(function ($) {
|
2
2
|
$.fn.LadasTinyMce = function (settings) {
|
3
|
-
|
3
|
+
if (typeof(tinymce) != "undefined") {
|
4
|
+
if (tinymce.activeEditor == null || tinymce.activeEditor.isHidden() != false) {
|
5
|
+
tinymce.editors = []; // remove any existing references
|
6
|
+
}
|
7
|
+
}
|
4
8
|
$(this).tinymce({
|
9
|
+
|
5
10
|
// localization
|
6
|
-
language:window.itl_gem_active_language, // change language here en,cs,sk
|
11
|
+
language: window.itl_gem_active_language, // change language here en,cs,sk
|
7
12
|
|
8
13
|
// Location of TinyMCE script
|
9
|
-
script_url:'/assets/backbone_js/tinymce/jscripts/tiny_mce/tinymce.min.js',
|
14
|
+
script_url: '/assets/backbone_js/tinymce/jscripts/tiny_mce/tinymce.min.js',
|
10
15
|
|
11
|
-
width:"100%",
|
16
|
+
width: "100%",
|
12
17
|
|
13
18
|
// General options
|
14
|
-
/*theme:"advanced",
|
15
|
-
plugins:"pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
|
16
19
|
|
17
|
-
|
18
|
-
//theme_advanced_buttons1:"save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
|
19
|
-
theme_advanced_buttons1:"newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
|
20
|
-
theme_advanced_buttons2:"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
|
21
|
-
theme_advanced_buttons3:"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
|
22
|
-
theme_advanced_buttons4:"insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
|
23
|
-
theme_advanced_toolbar_location:"top",
|
24
|
-
theme_advanced_toolbar_align:"left",
|
25
|
-
theme_advanced_statusbar_location:"bottom",
|
26
|
-
theme_advanced_resizing:true,
|
27
|
-
*/
|
28
|
-
theme:"modern",
|
20
|
+
theme: "modern",
|
29
21
|
//plugins:"pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
|
30
|
-
plugins:"pagebreak,layer,table,save,hr,image,link,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking, code",
|
22
|
+
plugins: "pagebreak,layer,table,save,hr,image,link,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking, code",
|
31
23
|
|
32
24
|
|
33
25
|
// Example content CSS (should be your site CSS)
|
@@ -35,18 +27,20 @@
|
|
35
27
|
|
36
28
|
// Drop lists for link/image/media/template dialogs
|
37
29
|
//template_external_list_url: tinymce_datafile_url(settings, "Template"),
|
38
|
-
link_list:tinymce_datafile_url(settings, "Link"),
|
39
|
-
image_list:tinymce_datafile_url(settings, "Image"),
|
40
|
-
media_external_list_url:tinymce_datafile_url(settings, "Media"),
|
30
|
+
link_list: tinymce_datafile_url(settings, "Link"),
|
31
|
+
image_list: tinymce_datafile_url(settings, "Image"),
|
32
|
+
media_external_list_url: tinymce_datafile_url(settings, "Media"),
|
41
33
|
|
42
|
-
media_types:"flash=swf;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm",
|
34
|
+
media_types: "flash=swf;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm",
|
43
35
|
|
44
36
|
// Replace values for the template plugin
|
45
|
-
template_replace_values:{
|
46
|
-
username:"Some User",
|
47
|
-
staffid:"991234"
|
37
|
+
template_replace_values: {
|
38
|
+
username: "Some User",
|
39
|
+
staffid: "991234"
|
48
40
|
}
|
49
41
|
});
|
42
|
+
|
43
|
+
|
50
44
|
}
|
51
45
|
})(jQuery);
|
52
46
|
|
@@ -55,7 +49,7 @@ function tinymce_datafile_url(settings, type) {
|
|
55
49
|
if (settings['resource_type'] && settings['resource_id']) {
|
56
50
|
var datafile_url = "/datafiles?datafile[owner_type]=" + settings['resource_type'] + "&datafile[owner_id]=" + settings['resource_id'] + "&type=" + type;
|
57
51
|
if (typeof(settings['sub_type']) != "undefined") {
|
58
|
-
datafile_url = datafile_url + "&datafile[sub_type]="+settings['sub_type']
|
52
|
+
datafile_url = datafile_url + "&datafile[sub_type]=" + settings['sub_type']
|
59
53
|
}
|
60
54
|
}
|
61
55
|
else {
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "it-logica-application-backbone"
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ladas"]
|
12
|
-
s.date = "2013-09-
|
12
|
+
s.date = "2013-09-13"
|
13
13
|
s.description = "longer description of your gem"
|
14
14
|
s.email = "ladislav.smola@it-logica.cz"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: it-logica-application-backbone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: htmlentities
|
@@ -467,7 +467,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
467
467
|
version: '0'
|
468
468
|
segments:
|
469
469
|
- 0
|
470
|
-
hash:
|
470
|
+
hash: 1955652533654213699
|
471
471
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
472
472
|
none: false
|
473
473
|
requirements:
|