use_tinymce 0.0.7 → 0.0.8
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/assets/use_tinymce_init_jquery.js +36 -0
- metadata +3 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// copied from the examples directory for the jQuery version of tinyMCE
|
|
2
|
+
$().ready(function() {
|
|
3
|
+
$({jquery_selector}).tinymce({
|
|
4
|
+
// Location of TinyMCE script
|
|
5
|
+
script_url : '/javascripts/tinymce/jscripts/tiny_mce/tiny_mce.js',
|
|
6
|
+
|
|
7
|
+
// General options
|
|
8
|
+
theme : "advanced",
|
|
9
|
+
plugins : "autolink,lists,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,advlist",
|
|
10
|
+
|
|
11
|
+
// Theme options
|
|
12
|
+
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
|
|
13
|
+
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",
|
|
14
|
+
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
|
|
15
|
+
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
|
|
16
|
+
theme_advanced_toolbar_location : "top",
|
|
17
|
+
theme_advanced_toolbar_align : "left",
|
|
18
|
+
theme_advanced_statusbar_location : "bottom",
|
|
19
|
+
theme_advanced_resizing : true,
|
|
20
|
+
|
|
21
|
+
// Example content CSS (should be your site CSS)
|
|
22
|
+
content_css : "css/content.css",
|
|
23
|
+
|
|
24
|
+
// Drop lists for link/image/media/template dialogs
|
|
25
|
+
template_external_list_url : "lists/template_list.js",
|
|
26
|
+
external_link_list_url : "lists/link_list.js",
|
|
27
|
+
external_image_list_url : "lists/image_list.js",
|
|
28
|
+
media_external_list_url : "lists/media_list.js",
|
|
29
|
+
|
|
30
|
+
// Replace values for the template plugin
|
|
31
|
+
template_replace_values : {
|
|
32
|
+
username : "Some User",
|
|
33
|
+
staffid : "991234"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: use_tinymce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.8
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Mike Howard
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-07-
|
|
13
|
+
date: 2011-07-18 00:00:00 Z
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
16
|
description: "UseTinymce - Yet Another tinyMCE integrations gem for Rails 3\n\
|
|
@@ -33,6 +33,7 @@ files:
|
|
|
33
33
|
- README.markdown
|
|
34
34
|
- assets/use_tinymce_init_simple.js
|
|
35
35
|
- assets/use_tinymce_init_advanced.js
|
|
36
|
+
- assets/use_tinymce_init_jquery.js
|
|
36
37
|
- assets/tinymce_jquery/tinymce/jscripts/tiny_mce/jquery.tinymce.js
|
|
37
38
|
- assets/tinymce_jquery/tinymce/jscripts/tiny_mce/langs/en.js
|
|
38
39
|
- assets/tinymce_jquery/tinymce/jscripts/tiny_mce/license.txt
|