tinyMCE

Download plugins, language packs and stuff.

Postby RAMI7250 » Sun Sep 03, 2006 9:24 am

hay,

how do i combine tinyMCE with the /cutenewsru/index.php?mod=images mod?



i have the code:



Code: Select all

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..
User avatar
RAMI7250
 
Posts: 43
Joined: Wed Jun 07, 2006 10:51 am

Postby sempro » Sat Oct 14, 2006 2:18 pm

Natasha wrote:
FI-DD wrote: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
sempro
 
Posts: 72
Joined: Thu Apr 27, 2006 12:36 pm

Postby ksen » Sat Oct 14, 2006 7:14 pm

to integrate the CNR image manager with tinyMCE!! Cool idea! Never occured to me :shock:
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby newboxters » Fri Nov 03, 2006 3:44 pm

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.
newboxters
 
Posts: 35
Joined: Wed Aug 02, 2006 1:22 am

Postby scottdallas » Fri Nov 03, 2006 7:00 pm

I can't comprehend ;(
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby newboxters » Sat Nov 04, 2006 3:17 am

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.
newboxters
 
Posts: 35
Joined: Wed Aug 02, 2006 1:22 am

whats problem?

Postby marcusmagalhaes » Mon May 21, 2007 4:42 pm

<?



/*

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 -->

<? } ?>

Image
marcusmagalhaes
 
Posts: 163
Joined: Tue Apr 24, 2007 1:17 pm

Postby FI-DD » Tue May 22, 2007 5:58 pm

Change the width of the editor: width : "390",
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Spike » Tue May 22, 2007 7:19 pm

FI-DD wrote: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 ;).
Spike
 
Posts: 1
Joined: Sun May 20, 2007 7:45 pm

Postby FI-DD » Tue May 22, 2007 8:04 pm

No idea.



Maybe the documentation helps:

http://wiki.moxiecode.com/index.php/Tin ... tion/width
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby marcusmagalhaes » Wed May 23, 2007 2:04 pm

cool!!!

I need this, you have??



thanks



RAMI7250 wrote:hay,

how do i combine tinyMCE with the /cutenewsru/index.php?mod=images mod?



i have the code:



Code: Select all

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 ?
marcusmagalhaes
 
Posts: 163
Joined: Tue Apr 24, 2007 1:17 pm

Postby marcusmagalhaes » Wed May 23, 2007 2:07 pm

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!!!!



FI-DD wrote:Change the width of the editor: width : "390",
marcusmagalhaes
 
Posts: 163
Joined: Tue Apr 24, 2007 1:17 pm

Postby scottdallas » Wed Aug 01, 2007 2:31 am

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

Code: Select all
<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 :(

Image

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.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby al3loo » Sat Aug 04, 2007 7:16 pm

sunburst wrote: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.


:roll: 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 :wink: put it and wait for the animadversions ..
Thank you very much


Kind Regards,
Aleloo
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby scottdallas » Mon Aug 06, 2007 4:39 am

The width of the white text editing area is exactly 400 pixels wide.. although the css is set to 390

:?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron