 |
 |
 |
 |
 |
| Author |
Message |
RAMI7250

Joined: 07 Jun 2006 Posts: 43
|
|
|
|
hay,
how do i combine tinyMCE with the /cutenewsru/index.php?mod=images mod?
i have the code:
 |  |
function fileBrowserCallBack(field_name, url, type, win) {
// This is where you insert your custom filebrowser logic
alert("Example of 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";
}
function myCustomFileBrowser(field_name, url, type, win) {
// Do custom browser logic
win.open('http://pctech.tigerboard.co.il/cutenewsru/index.php?mod=images&area', 'ImageBrowser', 'width=300,height=200,scrollbars=yes,status=yes,location=no,resizable=yes,dependent');
} |
in the <script> tag. its working- but -its just keeping sending me into the cutenewsru/index.php?mod=images mod ,without the option to actually insert the image into the post?
what can i do to ?
_________________ Sorry on my BAD english.. |
|
| Sun Sep 03, 2006 9:24 am |
 |
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
 |  |  |  | You can adjust the width of it.
Open the plugin and add for example width: "500" below height: "400". |
Can anyone help with the overlapping of the editor. I tried the above...adding the width...but then it makes the editor disappear. Any other way of changing the width??? |
some problem here
|
|
| Sat Oct 14, 2006 2:18 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
to integrate the CNR image manager with tinyMCE!! Cool idea! Never occured to me 
|
|
| Sat Oct 14, 2006 7:14 pm |
|
 |
newboxters
Joined: 02 Aug 2006 Posts: 35
|
|
|
|
And as I do to use the simple model of TinyMCE in the short news and the advanced model of TinyMCE in the complete news?
Thank you.
|
|
| Fri Nov 03, 2006 3:44 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2214 Location: US |
|
|
| Fri Nov 03, 2006 7:00 pm |
|
 |
newboxters
Joined: 02 Aug 2006 Posts: 35
|
|
|
|
For example:
In the tinyMCE there are several models, as a simple one (that only has basic options as boldface, italics and underlined text) and the advanced model that is a word online, with complete options of text edition, gives for inserting tables and everything more.
And the one that I wanted to do, is to use the simple model in the short news and the advanced editor (complete) in the complete news.
That is to say, in the box of edition of the short news, he will just appear some basic options of edition (boldface, italics), already in the complete news, all the edition options.
|
|
| Sat Nov 04, 2006 3:17 am |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 136
|
|
whats problem? |
|
<?
/*
Plugin Name: TinyMCE
Plugin URI: http://cutenews.ru
Description: WYSIWYG editor <a href="http://tinymce.moxiecode.com">TinyMCE</a>.
Version: 1.0
Application: CuteNews
Author: ˸õà zloy è êðàñèâûé
Author URI: http://lexa.cutenews.ru
*/
add_action('new-advanced-options', 'TinyMCE', 1);
add_action('edit-advanced-options', 'TinyMCE', 1);
function TinyMCE(){
?>
<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="./plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
language : "en",
width : "390",
plugins : "table,advhr,advimage,advlink,media,contextmenu,paste,directionality",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "media,advhr,separator,ltr,rtl",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
file_browser_callback : "fileBrowserCallBack",
height : "300"
});
</script>
<!-- /tinyMCE -->
<? } ?>

|
|
| Mon May 21, 2007 4:42 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2973 Location: Germany |
|
|
|
Change the width of the editor: width : "390",
|
|
| Tue May 22, 2007 5:58 pm |
|
 |
Spike
Joined: 20 May 2007 Posts: 1
|
|
|
|
 |  | Change the width of the editor: width : "390", |
Hello ,
I have the same issue with this plugin and I changed the width like marcusmagalhaes did but without succes .
So, FI-DD, where I must change the editor width ?
Thanks in advance .
|
|
| Tue May 22, 2007 7:19 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2973 Location: Germany |
|
|
| Tue May 22, 2007 8:04 pm |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 136
|
|
|
|
cool!!!
I need this, you have??
thanks
 |  | hay,
how do i combine tinyMCE with the /cutenewsru/index.php?mod=images mod?
i have the code:
 |  |
function fileBrowserCallBack(field_name, url, type, win) {
// This is where you insert your custom filebrowser logic
alert("Example of 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";
}
function myCustomFileBrowser(field_name, url, type, win) {
// Do custom browser logic
win.open('http://pctech.tigerboard.co.il/cutenewsru/index.php?mod=images&area', 'ImageBrowser', 'width=300,height=200,scrollbars=yes,status=yes,location=no,resizable=yes,dependent');
} |
in the <script> tag. its working- but -its just keeping sending me into the cutenewsru/index.php?mod=images mod ,without the option to actually insert the image into the post?
what can i do to ? |
|
|
| Wed May 23, 2007 2:04 pm |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 136
|
|
|
|
I put this in my code..
<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="./plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
language : "en",
width : "390",
:(  doesn't work!!!!
 |  | Change the width of the editor: width : "390", |
|
|
| Wed May 23, 2007 2:07 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2214 Location: US |
|
|
|
I'm having a terrible time getting this to look nice in the admin panel. I've used this css style code in tinymce.php
 |  | <style>
#title, #short, #full, #actions {
width: 390px;
border-right: solid 1px #f7f7f7;
color: #666;
float: left;
clear: both;
}
</style> |
and this is how it looks on FF and IE
Any ideas? Oh.. just realized that this post was a major repeat.. oh well there's my screenshot anyway. Looks familiar. There are TONS of buttons though. Maybe there's so many buttons it can't get as short as we're asking it to.. but the actual writing area looks smaller. Maybe some features need to be taken out of it or moved.
_________________ Follow me: http://www.scodal.com - http://www.twitter.com/scodal - http://scodal.tumblr.com - http://www.scottdizzle.com - http://facebook.com/scodal |
|
| Wed Aug 01, 2007 2:31 am |
|
 |
al3loo
Joined: 04 Aug 2007 Posts: 65
|
|
|
|
 |  | It fine now, i changed it to this width=390px:
#title, #short, #full, #actions {
width: 390px;
border-right: solid 1px #f7f7f7;
color: #666;
float: left;
clear: both;
}
and now everything fits nicely together. |
I think we are waiting you to come and tell us where you put this css
Otherwise, my dear FI-DD please check your plugins before put it and wait for the animadversions ..
Thank you very much
Kind Regards,
Aleloo
|
|
| Sat Aug 04, 2007 7:16 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2214 Location: US |
|
|
| Mon Aug 06, 2007 4:39 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|