Plugin • TinyFCK WYSIWYG Editor • Updated version 3.2.2

Download plugins, language packs and stuff.

Postby Syrion » Tue May 13, 2008 2:23 am

Database-f* up, sorry for the quadruple-post.
Last edited by Syrion on Tue May 13, 2008 2:25 am, edited 2 times in total.
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby Syrion » Tue May 13, 2008 2:23 am

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.
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby sidtheduck » Tue May 13, 2008 5:02 pm

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?
User avatar
sidtheduck
 
Posts: 71
Joined: Fri Mar 28, 2008 5:17 pm

Postby Syrion » Tue May 13, 2008 6:57 pm

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?
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby sidtheduck » Tue May 13, 2008 7:54 pm

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: Select all
<?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.
User avatar
sidtheduck
 
Posts: 71
Joined: Fri Mar 28, 2008 5:17 pm

Postby Syrion » Wed May 14, 2008 1:57 am

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
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby ivanh » Wed May 21, 2008 8:27 am

i get an xml error
heres the attachment

i love this addon for the upload files !!
Attachments
boo.GIF
not working
(45.17 KiB) Downloaded 142 times
ivanh
 
Posts: 75
Joined: Thu Aug 16, 2007 2:41 pm

Postby sidtheduck » Wed May 21, 2008 10:41 pm

I edited my post above. It should read:
Code: Select all
include_once($TinyFCK['serverpath']."data/config.php");
instead of:
Code: Select all
include_once("../../data/config.php");
User avatar
sidtheduck
 
Posts: 71
Joined: Fri Mar 28, 2008 5:17 pm

Postby Syrion » Thu May 22, 2008 1:14 am

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:
/cms/uploads/images/photo.jpg


But the "insert/edit image" function links to:
/cms/uploads/images/Image/photo.jpg
Last edited by Syrion on Thu May 22, 2008 11:39 pm, edited 1 time in total.
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby sidtheduck » Thu May 22, 2008 1:30 am

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 ... 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.
User avatar
sidtheduck
 
Posts: 71
Joined: Fri Mar 28, 2008 5:17 pm

Postby Syrion » Thu May 22, 2008 11:43 pm

It works now! Thanks a lot! :D
Image Mini-me
User avatar
Syrion
 
Posts: 185
Joined: Wed Aug 02, 2006 2:03 pm

Postby mikeD » Mon Jul 28, 2008 2:59 pm

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: Select all
<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.
mikeD
 
Posts: 27
Joined: Wed Jan 02, 2008 1:16 am

Postby sidtheduck » Tue Jul 29, 2008 6:24 am

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.
User avatar
sidtheduck
 
Posts: 71
Joined: Fri Mar 28, 2008 5:17 pm

Postby DistantJ » Tue Jul 29, 2008 10:36 am

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.

:)
DistantJ
 
Posts: 33
Joined: Tue Jul 29, 2008 10:27 am

Postby mikeD » Tue Jul 29, 2008 2:15 pm

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.
mikeD
 
Posts: 27
Joined: Wed Jan 02, 2008 1:16 am

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 1 guest