View previous topic :: View next topic |
Author |
Message |
unextmandy Smarty n00b
Joined: 19 Jan 2007 Posts: 3
|
Posted: Mon Jan 22, 2007 8:38 pm Post subject: |
|
|
I double checked the path, and it is correct.
Still no bar showing up...
Any ideas? I'm at a loss as to what to try next. |
|
Back to top |
|
TGKnIght Smarty Junkie
Joined: 07 Sep 2005 Posts: 580 Location: Philadelphia, PA
|
|
Back to top |
|
unextmandy Smarty n00b
Joined: 19 Jan 2007 Posts: 3
|
Posted: Tue Jan 23, 2007 4:13 pm Post subject: |
|
|
I get the same problem when viewing the sample (/includes/lib/FCKeditor/_samples/default.html). Everything shows up fine - the HTML and such - except the tool bar doesn't appear. The path has to be right, because it's got the drop down with the samples, the text, everything except the toolbar. Where the toolbar should be it says:
Source Style Format Font Size --
I installed FCKeditor in my own home directory on another machine, and the samples work fine. I can't figure out what the difference is!
I would include a url to the page, but it's password protected and I don't have the power to create logins. |
|
Back to top |
|
sdalgleish Smarty n00b
Joined: 06 May 2007 Posts: 2
|
Posted: Sun May 06, 2007 8:58 am Post subject: |
|
|
This is a great plugin and has made like a lot easier. However, I'm having trouble inserting Values into the Fckeditor instance.
I've got the code:
Code: | {fckeditor InstanceName="bio" Width="500px" Height="200px" ToolbarSet="Basic" Value="$details.0.bio"} |
(I know, it's not that tidy yet!) and all that appears in the editor box is Array.0.bio. How do I get it to insert the value of that variable rather than its name?
Thanks |
|
Back to top |
|
Celeb Administrator
Joined: 17 Apr 2007 Posts: 1025 Location: Vienna
|
Posted: Mon May 07, 2007 6:46 am Post subject: |
|
|
Try
Code: | Value=$details.0.bio | instead of Code: | Value="$details.0.bio" |
_________________ Darn computers always do what I tell them to instead of what I want them to do. |
|
Back to top |
|
sdalgleish Smarty n00b
Joined: 06 May 2007 Posts: 2
|
Posted: Mon May 07, 2007 4:59 pm Post subject: |
|
|
Genius! Thanks Celeb, much appreciated! |
|
Back to top |
|
mlykke Smarty n00b
Joined: 15 Dec 2007 Posts: 2
|
Posted: Sat Dec 15, 2007 11:30 pm Post subject: Getting values into the editor |
|
|
Hi Gazoot ... and all others
I'm currently using your fckeditor plugin and it works perfectly - almost...
I'm having difficulty getting it to show the text from a db if a user has already been working on something. I would think it had something to do with the value= thingy but I'm quite new to both smarty and fckeditor.
my code is as such:
Code: | {fckeditor BasePath="/jobVers11/richtexteditor/fckeditor/" InstanceName="jobad" Width="100%" Height="450px" value=$fckjobad}
|
And I validated that {$fckjobad} is containing text.
What do I need to do?
Kind regards
Michael |
|
Back to top |
|
mlykke Smarty n00b
Joined: 15 Dec 2007 Posts: 2
|
Posted: Sun Dec 16, 2007 12:05 am Post subject: Value-problem fixed !!! |
|
|
Hi all
fixed the problem :::
value=$fckjobad
should be
Value=$fckjobad
I must be too tired to work - going to bed... <zzzzzz> |
|
Back to top |
|
ZuqR Smarty Rookie
Joined: 01 Dec 2007 Posts: 6
|
Posted: Sun Mar 09, 2008 2:42 pm Post subject: |
|
|
Is it possible to add a 'class' just as if it would have been a div? |
|
Back to top |
|
JaturontThan Smarty n00b
Joined: 09 Apr 2008 Posts: 1
|
Posted: Wed Apr 09, 2008 8:48 am Post subject: |
|
|
I'm about to test this plugin, not quite sure what it's gonna look like, but it worth trying though...
------------------------------------------------
Internet Marketing Love Horoscopes |
|
Back to top |
|
saqib Smarty n00b
Joined: 23 Apr 2008 Posts: 1
|
Posted: Wed Apr 23, 2008 1:24 pm Post subject: google ads |
|
|
This plugin is working great for me but when i add google ad javascript code the fckeditor disappears and unterminated string constant error get produced.
I am using addslashes and stripslashes to retrieve and save the data in the database. Any solution for this?????? |
|
Back to top |
|
Hervé Saladin Smarty n00b
Joined: 03 Sep 2007 Posts: 2
|
Posted: Wed Apr 30, 2008 12:51 pm Post subject: |
|
|
Hi,
thanks for this very useful plugin, gazoot
Unefortunately, a colleague of mine discovered a bug in this code :
problem :
when we use several instances of fckeditor in the same page, if an instance wich is not the first has an empty value, it will display the value of the previous instance
cause :
this happens because the value at key 'Value' in the static array $base_arguments is affected only when a value is set in the call of the plugin
Code: | if(isset($params['Value'])) $base_arguments['Value'] = $params['Value']; |
So, when we call the plugin one time with a non-empty value, it is copied into $base_arguments['Value']. On the second call, if the instance's value is empty, $base_arguments['Value'] won't be affected and will keep the 1st call's value ...
solution :
replace the line : Code: | if(isset($params['Value'])) $base_arguments['Value'] = $params['Value']; |
with :
Code: | if(isset($params['Value']))
$base_arguments['Value'] = $params['Value'];
else
$base_arguments['Value'] = ''; |
and this should work fine |
|
Back to top |
|
speedev Smarty Rookie
Joined: 05 Aug 2008 Posts: 6
|
Posted: Mon Aug 18, 2008 3:30 pm Post subject: Problem with text caption |
|
|
Hello,
I am using two fckeditors plugin in a Smarty template :
Code: |
{fckeditor BasePath="library/fckeditor/" InstanceName="chp_com" Width="250px" Height="200px" ToolbarSet='Basic'}
{fckeditor BasePath="library/fckeditor/" InstanceName="chp_pb" Width="250px" Height="200px" ToolbarSet='Basic'}
|
InstantNames are differents so...
It was working nice last week but today,the two text captions of both fckeditor are hidden or disabled (i don't konw)!
Usually i can see the white area text caption because of a yellow background color behind but not today.
Strangely...I can see the first toolbar of both Fck objects. (??)
I try to move one plugin line out of html containers elements but i can't resolve the problem.
Can you help me ?
Thx a lot |
|
Back to top |
|
speedev Smarty Rookie
Joined: 05 Aug 2008 Posts: 6
|
Posted: Tue Aug 19, 2008 7:25 am Post subject: |
|
|
Today, it's works...(reboot this night)
Browser problem maybe... |
|
Back to top |
|
gazoot Smarty Regular
Joined: 20 Feb 2005 Posts: 35
|
Posted: Thu Aug 21, 2008 7:01 pm Post subject: Bugfix applied |
|
|
Hello, wow it's been years since I wrote this! Anyway, the bugfix from Hervé Saladin is applied to the code post, thanks for the contribution! |
|
Back to top |
|
|