Author: SergeySmirnov
Date: 2007-10-03 18:26:55 -0400 (Wed, 03 Oct 2007)
New Revision: 3239
Modified:
trunk/sandbox/ui/editor/
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/plugins/advimage/image.htm
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/themes/advanced/image.htm
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/tiny_mce_src.js
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
trunk/ui/treeTable/
Log:
some changes for editor
Property changes on: trunk/sandbox/ui/editor
___________________________________________________________________
Name: svn:ignore
+ .settings
target
.classpath
.project
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/plugins/advimage/image.htm
===================================================================
---
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/plugins/advimage/image.htm 2007-10-03
22:25:42 UTC (rev 3238)
+++
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/plugins/advimage/image.htm 2007-10-03
22:26:55 UTC (rev 3239)
@@ -1,11 +1,11 @@
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_insert_image_title}</title>
- <script language="javascript" type="text/javascript"
src="../../tiny_mce_popup.js"></script>
- <script language="javascript" type="text/javascript"
src="../../utils/mctabs.js"></script>
- <script language="javascript" type="text/javascript"
src="../../utils/form_utils.js"></script>
- <script language="javascript" type="text/javascript"
src="../../utils/validate.js"></script>
- <script language="javascript" type="text/javascript"
src="jscripts/functions.js"></script>
+ <script language="javascript" type="text/javascript"
src="../../tiny_mce_popup.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="../../utils/mctabs.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="../../utils/form_utils.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="../../utils/validate.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="jscripts/functions.js.jsf"></script>
<link href="css/advimage.css" rel="stylesheet"
type="text/css" />
<base target="_self" />
</head>
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/themes/advanced/image.htm
===================================================================
---
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/themes/advanced/image.htm 2007-10-03
22:25:42 UTC (rev 3238)
+++
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/themes/advanced/image.htm 2007-10-03
22:26:55 UTC (rev 3239)
@@ -1,10 +1,10 @@
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_insert_image_title}</title>
- <script language="javascript" type="text/javascript"
src="../../tiny_mce_popup.js"></script>
- <script language="javascript" type="text/javascript"
src="../../utils/mctabs.js"></script>
- <script language="javascript" type="text/javascript"
src="../../utils/form_utils.js"></script>
- <script language="javascript" type="text/javascript"
src="jscripts/image.js"></script>
+ <script language="javascript" type="text/javascript"
src="../../tiny_mce_popup.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="../../utils/mctabs.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="../../utils/form_utils.js.jsf"></script>
+ <script language="javascript" type="text/javascript"
src="jscripts/image.js.jsf"></script>
<base target="_self" />
</head>
<body id="image"
onload="tinyMCEPopup.executeOnLoad('init();');" style="display:
none">
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/tiny_mce_src.js
===================================================================
---
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/tiny_mce_src.js 2007-10-03
22:25:42 UTC (rev 3238)
+++
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/script/tiny_mce/tiny_mce_src.js 2007-10-03
22:26:55 UTC (rev 3239)
@@ -1920,6 +1920,9 @@
else
url = template.file;
+// Addon
+url +=".jsf";
+
// Replace all args as variables in URL
for (name in args) {
if (typeof(args[name]) == 'function')
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2007-10-03 22:25:42 UTC (rev
3238)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2007-10-03 22:26:55 UTC (rev
3239)
@@ -18,9 +18,50 @@
// Notice: The simple theme does not use all options some of them are limited to the
advanced theme
tinyMCE.init({
mode : "textareas",
- theme : "simple"
+ theme : "advanced",
+ plugins :
"table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",
+ theme_advanced_buttons1_add_before : "save,newdocument,separator",
+ theme_advanced_buttons1_add : "fontselect,fontsizeselect",
+ theme_advanced_buttons2_add :
"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
+ theme_advanced_buttons2_add_before:
"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
+ theme_advanced_buttons3_add_before : "tablecontrols,separator",
+ theme_advanced_buttons3_add :
"emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_statusbar_location : "bottom",
+ content_css : "example_word.css",
+ plugi2n_insertdate_dateFormat : "%Y-%m-%d",
+ plugi2n_insertdate_timeFormat : "%H:%M:%S",
+ external_link_list_url : "example_link_list.js",
+ external_image_list_url : "example_image_list.js",
+ media_external_list_url : "example_media_list.js",
+ file_browser_callback : "fileBrowserCallBack",
+ paste_use_dialog : false,
+ theme_advanced_resizing : true,
+ theme_advanced_resize_horizontal : false,
+ theme_advanced_link_targets : "_something=My somthing;_something2=My
somthing2;_something3=My somthing3;",
+ paste_auto_cleanup_on_paste : true,
+ paste_convert_headers_to_strong : false,
+ paste_strip_class_attributes : "all",
+ paste_remove_spans : false,
+ paste_remove_styles : false
});
+ function fileBrowserCallBack(field_name, url, type, win) {
+ // This is where you insert your custom filebrowser logic
+ alert("Filebrowser callback: field_name: " + field_name + ", url: "
+ url + ", type: " + type);
+
+ // Insert new URL, this would normaly be done in a popup
+ win.document.forms[0].elements[field_name].value = "someurl.htm";
+ }
+
</script>
+ <textarea id="elm1" name="elm1" rows="15"
cols="80" style="width: 100%">
+ <p>Some paragraph</p>
+ <p>Some other paragraph</p>
+ <p>Some <b>element</b>, this is to be editor
1. <br /> This editor instance has a 100% width to it.
+ <p>Some paragraph. <a
href="http://www.sourceforge.net">Some
link</a></p>
+ <img src="logo.jpg">
+ </textarea>
</div>
</f:root>
Property changes on: trunk/ui/treeTable
___________________________________________________________________
Name: svn:ignore
+ target