Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Plugin • TinyFCK WYSIWYG Editor with File / Image Manager
Goto page Previous  1, 2, 3, 4, 5  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Plugin • TinyFCK WYSIWYG Editor with File / Image Manager
Author Message
Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
Database-f* up, sorry for the quadruple-post.

_________________
Mini-me

Last edited by Syrion on Tue May 13, 2008 2:25 am; edited 2 times in total
Tue May 13, 2008 2:23 am View user's profile Send private message
Guest








Please login to hide the ads.

Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
Maybe someone could write a plugin-configurator* like the X-Fields one for TinyFCK.

Is it possible to link the TinyFCK-filemanager with the CuteNewsRu one (so they both use whatever is set in the system-options)? Or it's not working for me (if the most recent adapted TinyFCK-version should do this) or this option isn't there.



* You'll see this in your settings/options area when X-fields is enabled.

_________________
Mini-me
Tue May 13, 2008 2:23 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
Syrion wrote:
Maybe someone could write a plugin-configurator* like the X-Fields one for TinyFCK.
* You'll see this in your settings/options area when X-fields is enabled.
What would you like configurated? Toolbars for TinyFCK? Path to images? Just curious.

Syrion wrote:
Is it possible to link the TinyFCK-filemanager with the CuteNewsRu one (so they both use whatever is set in the system-options)? Or it's not working for me (if the most recent adapted TinyFCK-version should do this) or this option isn't there.
Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting? Or did you mean to have a system setting to toggle use of either the TinyFCK filemanager or the CuteNewsRU image manager?
Tue May 13, 2008 5:02 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
sidtheduck wrote:
Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting?


Right on!


About the configuration-idea: those two examples you provide are good ones, I don't know if others have any suggestions?

_________________
Mini-me
Tue May 13, 2008 6:57 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
Syrion wrote:
sidtheduck wrote:
Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting?


Right on!

Use the code below for your 'tinyfck.config.php' file located in the 'plugins/tinyfck' folder:
Code:
<?php
//set up the absolute path variable to CutenewsRU
$serverpath = dirname(dirname(dirname(__FILE__)));
//workaround for windows machines running apache
if ($serverpath[0] != "/"){
   $serverpath = str_replace("\\", "/", $serverpath);
   $serverpath = substr($serverpath, strpos("/", $serverpath), (strlen($serverpath)-1));
}
$TinyFCK['serverpath'] = (substr($serverpath, -1)=="/") ? $serverpath : $serverpath."/";

//set up the root path and absolute URL path variable to this script
if (!empty($_SERVER['DOCUMENT_ROOT'])){
   $absrootpath = $_SERVER['DOCUMENT_ROOT'];
}else{
   $absrootpath = str_replace($_SERVER['SCRIPT_NAME'], "", realpath($_SERVER['SCRIPT_FILENAME']));
}
$TinyFCK['rootpath'] = str_replace($absrootpath, "", $TinyFCK['serverpath']);

include_once($TinyFCK['serverpath']."data/config.php");
$cuterootarray = parse_url($config_path_image_upload);
$cuteroot = $cuterootarray['path'];
$TinyFCK['imgpath'] = $cuteroot;
$TinyFCK['absimgpath'] = $absrootpath.$cuteroot;

//print_r($TinyFCK);
?>



Last edited by sidtheduck on Wed May 21, 2008 10:40 pm; edited 1 time in total
Tue May 13, 2008 7:54 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
Thanks for the code, I installed it, but I have the idea they still use separate directories.


Back to the idea of a configurator:
- language swapper

_________________
Mini-me
Wed May 14, 2008 1:57 am View user's profile Send private message
ivanh



Joined: 16 Aug 2007
Posts: 72

Post Reply with quote
i get an xml error
heres the attachment

i love this addon for the upload files !!



boo.GIF
 Description:
not working

Download
 Filename:  boo.GIF
 Filesize:  45.17 KB
 Downloaded:  38 Time(s)

Wed May 21, 2008 8:27 am View user's profile Send private message Visit poster's website
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
I edited my post above. It should read:
Code:
include_once($TinyFCK['serverpath']."data/config.php");
instead of:
Code:
include_once("../../data/config.php");

Wed May 21, 2008 10:41 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
Great! It works now!

Only problem I encountered is that if you try to embed an image through the image-insert button in TinyFCK is that it automaticly adds Image/ in the path.

To clarify it, the path of the actual image is:
Quote:
/cms/uploads/images/photo.jpg


But the "insert/edit image" function links to:
Quote:
/cms/uploads/images/Image/photo.jpg


_________________
Mini-me

Last edited by Syrion on Thu May 22, 2008 11:39 pm; edited 1 time in total
Thu May 22, 2008 1:14 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
Syrion wrote:
Great! It works now!

Only problem I encountered is that if you try to embed an image through the image-insert button in TinyFCK is that it automaticly adds Image/ in the path.

Did you upload the new 'io.php' from this post? -> http://forums.cutenewsru.com/plugin-%95-tinyfck-wysiwyg-editor-with-file---image-manager-t2045-s15.html#11960

Now that it's working correctly, I'll put together an updated package and hopefully D72 can add it to the initial post as well instead of having to piece it all together from different posts.
Thu May 22, 2008 1:30 am View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 174

Post Reply with quote
It works now! Thanks a lot! Very Happy

_________________
Mini-me
Thu May 22, 2008 11:43 pm View user's profile Send private message
mikeD



Joined: 02 Jan 2008
Posts: 27

Post Reply with quote
manu wrote:

when I return at the line ; there was a very big space between 2 lines.

Hello,

I am having the same issue as manu, where it seems to be adding a <br /> before, after and in between each <p> tag. i.e. when typing a return.
E.g.:
Code:
<p><br />My first paragraph here...<br /></p><br /><p><br />My second paragraph here...<br /></p>

And so the result is an extra space before and after each paragraph.
Any suggestions as to how to fix this?
Thanks.

_________________
Take a penny, leave a penny.
Mon Jul 28, 2008 2:59 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 71

Post Reply with quote
mikeD,

Do you have a plugin or a hack of some sort that has an nl2br function? I don't think TinyMCE by itself adds *both* a <p> tag and a <br /> tag, but I could be wrong as well. Also, what browser are you using that you get this issue with? I know TinyMCE had some issues < 3.0 with Safari so it may be best to upgrade to the newest TinyMCE (with the additional FCKeditor image editor plugins from TinyFCK). I haven't done this, so I don't know if there would be any issues either.
Tue Jul 29, 2008 6:24 am View user's profile Send private message
DistantJ



Joined: 29 Jul 2008
Posts: 1

Post Reply with quote
This sounds excellent. Before I install, I wanted to ask -

Is it possible to set the default font face and colour, and set a background colour?

I say this because my site has a black background and white size 2 Verdana text, and I'd like my writers to be able to see how the article will look while they make it. I'd also like to set the width of the editor to the same width as my article page, but judging from posts in here I'm pretty sure that's already possible.

Smile
Tue Jul 29, 2008 10:36 am View user's profile Send private message
mikeD



Joined: 02 Jan 2008
Posts: 27

Post Reply with quote
sidtheduck wrote:
mikeD,

Do you have a plugin or a hack of some sort that has an nl2br function? I don't think TinyMCE by itself adds *both* a <p> tag and a <br /> tag, but I could be wrong as well. Also, what browser are you using that you get this issue with? I know TinyMCE had some issues < 3.0 with Safari so it may be best to upgrade to the newest TinyMCE (with the additional FCKeditor image editor plugins from TinyFCK).

Sid,

I am using FF2 on MacOSX. Not sure what 'nl2br' function is but I found a solution on my own. I enabled the format switcher plugin and edited it to make 'html' the default instead of 'html with br' and that has corrected the issue for me.

Thx.

_________________
Take a penny, leave a penny.
Tue Jul 29, 2008 2:15 pm View user's profile Send private message
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 4 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.