Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
tinyMCE
Goto page Previous  1, 2, 3, 4, 5  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
tinyMCE
Author Message
RAMI7250



Joined: 07 Jun 2006
Posts: 43

Post Reply with quote
hay,

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



i have the code:



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 View user's profile Send private message ICQ Number
Guest








Please login to hide the ads.

sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
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
Sat Oct 14, 2006 2:18 pm View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
to integrate the CNR image manager with tinyMCE!! Cool idea! Never occured to me Shocked
Sat Oct 14, 2006 7:14 pm View user's profile Send private message
newboxters



Joined: 02 Aug 2006
Posts: 35

Post Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 2214
Location: US

Post Reply with quote
I can't comprehend ;(

_________________
Follow me: http://www.scodal.com - http://www.twitter.com/scodal - http://scodal.tumblr.com - http://www.scottdizzle.com - http://facebook.com/scodal
Fri Nov 03, 2006 7:00 pm View user's profile Send private message Visit poster's website AIM Address
newboxters



Joined: 02 Aug 2006
Posts: 35

Post Reply with quote
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 View user's profile Send private message
marcusmagalhaes



Joined: 24 Apr 2007
Posts: 136

Post whats problem? Reply with quote
<?



/*

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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2973
Location: Germany

Post Reply with quote
Change the width of the editor: width : "390",
Tue May 22, 2007 5:58 pm View user's profile Send private message
Spike



Joined: 20 May 2007
Posts: 1

Post Reply with quote
FI-DD wrote:
Change the width of the editor: width : "390",




Hello Smile,



I have the same issue with this plugin and I changed the width like marcusmagalhaes did but without succes Sad.

So, FI-DD, where I must change the editor width ?



Thanks in advance Wink.
Tue May 22, 2007 7:19 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2973
Location: Germany

Post Reply with quote
No idea.



Maybe the documentation helps:

http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/width
Tue May 22, 2007 8:04 pm View user's profile Send private message
marcusmagalhaes



Joined: 24 Apr 2007
Posts: 136

Post Reply with quote
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:


 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 View user's profile Send private message
marcusmagalhaes



Joined: 24 Apr 2007
Posts: 136

Post Reply with quote
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",



:(SadSadSad doesn't work!!!!



FI-DD wrote:
Change the width of the editor: width : "390",

Wed May 23, 2007 2:07 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 2214
Location: US

Post Reply with quote
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:
<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 Sad



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 View user's profile Send private message Visit poster's website AIM Address
al3loo



Joined: 04 Aug 2007
Posts: 65

Post Reply with quote
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.


Rolling Eyes I think we are waiting you to come and tell us where you put this css Question

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
Sat Aug 04, 2007 7:16 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 2214
Location: US

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

Confused

_________________
Follow me: http://www.scodal.com - http://www.twitter.com/scodal - http://scodal.tumblr.com - http://www.scottdizzle.com - http://facebook.com/scodal
Mon Aug 06, 2007 4:39 am View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.