Subject: FCKeditor and Geeklog

Posted on: 06/10/04 11:09pm
By: mfuggle

Has anyone tried to use FCKeditor with Geeklog. I am trying to use it and cannot figure our how to do the following...


. In storyeditor.thtml I want to use FCKeditor for the display and modification of the intro and body text panels


. I can successfully get the panels to display with appropriate toolbars at the top of each panel using the following code


<tr>
<td valign="top" align="right">{lang_introtext}:</td>
<td>
<script language="javascript>
<!--
var oFCKeditor ;
oFCKeditor = new FCKeditor('EditorBasic', 300, 100, 'Basic') ;
oFCKeditor.Width	= '100%' ;
oFCKeditor.Height	= 100 ;
oFCKeditor.Value	= {story_introtext} ;
oFCKeditor.Create() ;
//-->
</script>
</td>
</tr>


. the first problem is that on execution in Geeklog I get an error suggetsing there is a missing ; which I cannot locate but the more important issue is that I am not sure how to take the modified text and have it update {story_introtext} in the datebase.


Can anyone help me...
. should I be using a different wysiswyg editor
. getting advice from the FCKeditor forums
. or forget about using a wysiwyg editor in Geeklog


Help appreciated.


Regards
Martrin Fuggle


FCKeditor and Geeklog

Posted on: 07/10/04 03:10am
By: mfuggle

HTMLarea 3.0 seems to be the way to go and works very nicely...

Regards
Martin Fuggle

FCKeditor and Geeklog

Posted on: 08/10/04 12:57pm
By: NeoNecro

Hey,
I'm looking for a good wysiwyg editor for geeklog to. And FCKeditor seems beter to me than htmlarea.

Why? It took me almost half an hour to get htmlarea working and it doesn't work like it has to. FCKeditor only took me five minutes and it works perfectly! To get to your question:
I found out you have to place this code in your header:
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>




And then I think the best you can do is replacing the text area's you wan't like so: (also in youre header)
     <script type="text/javascript">
      window.onload = function()
      {
        var oFCKeditor = new FCKeditor( 'introtext' ) ;
	oFCKeditor.ReplaceTextarea() ;
	var oFCKeditor = new FCKeditor( 'bodytext' ) ;
        oFCKeditor.ReplaceTextarea() ;
      }
    </script>




If you now edit or create a story as an admin you wil see the 's are changed into editors!
The only bad side to this is that you will always have this code in youre header. I have to little knowledge of javascript to know who to solve this grtz

btw: if you do it this way, you only should edit your header.thtml

FCKeditor and Geeklog

Posted on: 09/10/04 01:19pm
By: Blaine

As a follow-up to NeoNecro's notes.

I just finished doing some testing of FCKeditor and found the version 2.0beta 2 still a bit buggy. All the style/font/sizing dropdowns for example, don't work in IE 6 on SP2 for example that I have and it's a posted bug with no follow-up.

I also tried version 1.6 but only works on IE.

I got ver 2.0 to work in IE and Mozilla with some issues like not getting the image upload feature to work.

A few notes: I was installing on my local devel workstatation and needed to set the basepath for each time I used it in the form.

I copied the FCKedtor code into the public_html/fckeditor directory. Adjust as required for your site.

All thats needed in your theme's header.thtml is the include of the main js file - near where the other script tags are. Use the template variable {site_url} so that your full url is used.
<script type="text/javascript" src="{site_url}/fckeditor/fckeditor.js"></script>




Currently, Geeklog's code for the comment, submit new story and admin storyeditor have suport to use an advanced editor template file so you can toggle the advanced editor on and off.

You need to add the $_CONF parm to your config.php (it will be set false in 1.3.10 by default) as it's not currently defined. Set true for enabled and false to disable.
$_CONF['advanced_editor'] = true;



Using the admin storyeditor as an example, you need to copy the admin/story/storyeditor.thtml to storyeditor_advanced.thtml. Then edit this template to add the changes required to launch the FCKeditor component in the textareas.

Add the following just above the closing form tag
<script>
  var oFCKeditor = new FCKeditor( 'introtext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
   var oFCKeditor = new FCKeditor( 'bodytext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
</script>




This works as is in IE but Mozilla needs to have the textarea fields also defined with the ID attribute. For example the introtext field would be:
<textarea id="introtext" name="introtext" cols="70" rows="6" wrap="virtual">{story_introtext}




You would need to repeat the template editing for the comment and story submit forms or other forms as required. This method does allow you to toggle it off via the config.php and if the advanced version of the template does not exist - it defaults to the normal template.

FCKeditor and Geeklog

Posted on: 22/10/04 04:53pm
By: Anonymous

[QUOTE BY= Blaine] As a follow-up to NeoNecro's notes.

...
[/QUOTE]

Did you test this in Firefox? I have it working in IE but doesn't seem to render at all in firefox.

FCKeditor and Geeklog

Posted on: 23/10/04 03:34am
By: NeoNecro

Hey,
I use the latset version of FCKeditor and it works fine both on ie and firefox. If doesn't work on one of the two, there's a big chance you did something wrong.

Here's an example of FCKeditor in comments.

FCKeditor and Geeklog

Posted on: 23/10/04 07:18pm
By: Blaine

Yeh the version 2.0b does work in FireFox but is sort of broken in IE. The font style and text size drop downs do not work in IE. I also noticed the TABLE tool works different in Firefox. In Firefox, you have more controls to edit the table once you have created one and I liked that.

I will probally go back to using 1.6 as it worked well in IE (does not work in Firefox) but it also had more tools then the 2.0 version. I really liked the table autoformat option in 1.6

FCKeditor and Geeklog

Posted on: 14/02/05 08:28am
By: Norgs

Anyone here had a crack at installing tinyMCE?

FCKeditor and Geeklog

Posted on: 22/02/05 11:36am
By: surgeon

[QUOTE BY= Blaine] Yeh the version 2.0b does work in FireFox but is sort of broken in IE.[/QUOTE]
I trying to use 2.0 RC2 in Your method. And it still works only in IE6.0. In Firefox not.

FCKeditor and Geeklog

Posted on: 22/02/05 02:18pm
By: geKow

same here... the editor appears, but when I submit the story, I get a blank page and nothing happens.

geKow

FCKeditor and Geeklog

Posted on: 22/02/05 02:34pm
By: beewee

Yep, me tto, I succeeded in implementing HTMLarea 3, but after submitting i got a blank page. But the story was submitted indeed, so after hitting Back twice I got the storylist. And got another problem: in the titlebar I got a message about loading HTMLarea 5/5 and didn't get rid of it, so I got rid of HTMLarea at all.

Now I'm using the CuneA form HTML editor which is a Firefox extension, and the simple upload script for uploading images etc.

I tried NeoNecro's trick in lib-common.php but that gave an error message.

Suggestions are welcome.....

FCKeditor and Geeklog

Posted on: 22/02/05 03:09pm
By: Robin

[QUOTE BY= surgeon]I trying to use 2.0 RC2 in Your method. And it still works only in IE6.0. In Firefox not. [/QUOTE]
It works perfectly with Firefox (as I don't use anything else unless I have to) here . I followed Blaine's suggestions and it works like a charm. Try to submit a story.
PS
I will post the instructions in Polish soon

FCKeditor and Geeklog

Posted on: 23/02/05 12:49pm
By: surgeon

Ok, it really works in firefox, but cols="70" must be.
There are still many bugs:
1. Button "back" don`t work when we on geeklog site with FCKeditor (in firefox).
2. Bold and colors don`t works in table (IE and firefox).
3. Problems with

aragraphs

.
4. When saving story after editing we stuck in blank page instead of "Story is saved" (firefox). Anyway story IS saved.
And propably many more.

FCKeditor and Geeklog

Posted on: 27/02/05 07:39am
By: ldfoo

Anyone here had a crack at installing tinyMCE?


Yep - Thanks for the pointer - I have previously installed HTMLArea and FCKEditor successfully - that is until the latest HTMLArea where I continue to have probs with the "...init" whatever.

Tiny_MCE installs like a dream (tested on local test server) - by far the easiest to install and control which textareas are used. The plain version seemed to work OK with Firefox though after installing third party emoticons and image browser/uploader, Firefox became a disaster. All works perfectly in ie6, including image upload and limited manipulation.

The Geeklog alternate templates for rich text editor are excellent - thanks - Be great to have the same for the forum - hope you have a chance to include that in the new release Blaine

You may have a prob with the third party plugins - need to change the english language pack name to "en" from "uk" and also the language reference in the associated xxxxx.js file - found this solution in the tiny_MCE forums.

Just a question - I'm not up on security and the concerns with user access to HTML in contributions - If I limit access to rich text contributions to trusted contributors - Is this a problem?

thanks

FCKeditor and Geeklog

Posted on: 21/05/05 12:12pm
By: Sonnyb

I believe that geeklog filters html output from any editor the same way. It strips out whatever isn't explicitly allowed. I believe the settings are in config.php, look for admin_html and user_html. That's just from memory, don't quote me on that

FCKeditor and Geeklog

Posted on: 11/06/05 12:49pm
By: congleal

[QUOTE BY= Blaine] As a follow-up to NeoNecro's notes.

I just finished doing some testing of FCKeditor and found the version 2.0beta 2 still a bit buggy. All the style/font/sizing dropdowns for example, don't work in IE 6 on SP2 for example that I have and it's a posted bug with no follow-up.

I also tried version 1.6 but only works on IE.

I got ver 2.0 to work in IE and Mozilla with some issues like not getting the image upload feature to work.

A few notes: I was installing on my local devel workstatation and needed to set the basepath for each time I used it in the form.

I copied the FCKedtor code into the public_html/fckeditor directory. Adjust as required for your site.

All thats needed in your theme's header.thtml is the include of the main js file - near where the other script tags are. Use the template variable {site_url} so that your full url is used.
<script type="text/javascript" src="{site_url}/fckeditor/fckeditor.js"></script>






Currently, Geeklog's code for the comment, submit new story and admin storyeditor have suport to use an advanced editor template file so you can toggle the advanced editor on and off.

You need to add the $_CONF parm to your config.php (it will be set false in 1.3.10 by default) as it's not currently defined. Set true for enabled and false to disable.
$_CONF['advanced_editor'] = true;





Using the admin storyeditor as an example, you need to copy the admin/story/storyeditor.thtml to storyeditor_advanced.thtml. Then edit this template to add the changes required to launch the FCKeditor component in the textareas.

Add the following just above the closing form tag
<script>
  var oFCKeditor = new FCKeditor( 'introtext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
   var oFCKeditor = new FCKeditor( 'bodytext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
</script>






This works as is in IE but Mozilla needs to have the textarea fields also defined with the ID attribute. For example the introtext field would be:
<textarea id="introtext" name="introtext" cols="70" rows="6" wrap="virtual">{story_introtext}






You would need to repeat the template editing for the comment and story submit forms or other forms as required. This method does allow you to toggle it off via the config.php and if the advanced version of the template does not exist - it defaults to the normal template.
[/QUOTE]

I've got it "sort of working" on my geeklog but it seems really "buggy"
I get 2 pop errors:
1. Error: The TEXTAREA id "introtext" was not found...
2. Error: The TEXTAREA id "bodytext" was not found

It appears I can edit an existing story but when I make changes and save, it goes to a blank screen.

When I go to login, I supply my credentials then it goes to a blank screen.
But when I do a refresh or change the http address to the website, it opens with my user credential?

Sorry if I sound ignorant but I guess I am... Windows 2K Server, Geeklog 1.3.11 rc1 using FoxFire browser but also tested with IE.

Help!

Thanks,

Lee

FCKeditor and Geeklog

Posted on: 11/06/05 01:22pm
By: Blaine

You may want to try the latest CVS version of geeklog if this is a non-production site. I have the latest version of FCKeditor integrated as an out-of-the-box option if you enable the advanced Editor option in config.php.

I've made quite a few other edits to the advanced editor and am interested in more users testing as well.

Note: FCKeditor 2.0 version is currently final candiate (FC) with an expected final release in July.

FCKeditor and Geeklog

Posted on: 11/06/05 02:12pm
By: congleal

Thanks!

FCKeditor and Geeklog

Posted on: 14/06/05 01:15pm
By: congleal

[QUOTE BY= Blaine] As a follow-up to NeoNecro's notes.

I just finished doing some testing of FCKeditor and found the version 2.0beta 2 still a bit buggy. All the style/font/sizing dropdowns for example, don't work in IE 6 on SP2 for example that I have and it's a posted bug with no follow-up.

I also tried version 1.6 but only works on IE.

I got ver 2.0 to work in IE and Mozilla with some issues like not getting the image upload feature to work.

A few notes: I was installing on my local devel workstatation and needed to set the basepath for each time I used it in the form.

I copied the FCKedtor code into the public_html/fckeditor directory. Adjust as required for your site.

All thats needed in your theme's header.thtml is the include of the main js file - near where the other script tags are. Use the template variable {site_url} so that your full url is used.
<script type="text/javascript" src="{site_url}/fckeditor/fckeditor.js"></script>






Currently, Geeklog's code for the comment, submit new story and admin storyeditor have suport to use an advanced editor template file so you can toggle the advanced editor on and off.

You need to add the $_CONF parm to your config.php (it will be set false in 1.3.10 by default) as it's not currently defined. Set true for enabled and false to disable.
$_CONF['advanced_editor'] = true;





Using the admin storyeditor as an example, you need to copy the admin/story/storyeditor.thtml to storyeditor_advanced.thtml. Then edit this template to add the changes required to launch the FCKeditor component in the textareas.

Add the following just above the closing form tag
<script>
  var oFCKeditor = new FCKeditor( 'introtext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
   var oFCKeditor = new FCKeditor( 'bodytext' ) ;
   oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
   oFCKeditor.ReplaceTextarea() ;
</script>






This works as is in IE but Mozilla needs to have the textarea fields also defined with the ID attribute. For example the introtext field would be:
<textarea id="introtext" name="introtext" cols="70" rows="6" wrap="virtual">{story_introtext}






You would need to repeat the template editing for the comment and story submit forms or other forms as required. This method does allow you to toggle it off via the config.php and if the advanced version of the template does not exist - it defaults to the normal template.
[/QUOTE]
Blaine,
Could you please restate these instructions...I guess I'm "impaired" because I've tried FCKEditor 2.0 and HTMLArea 3.0 and have been unsuccessful in trying to get it configured properly. I think my biggest problem is trying to figure out where exactly the code is suppose to go in the files.
I just need some replacement for the current story editor.
I appreciate your patience...

Lee

FCKeditor and Geeklog

Posted on: 18/06/05 09:56pm
By: ajzz

I've got it "sort of working" on my geeklog but it seems really "buggy"
I get 2 pop errors:
1. Error: The TEXTAREA id "introtext" was not found...
2. Error: The TEXTAREA id "bodytext" was not found


Congleal, the below is paraphrasing of Blaine's post and should solve your issue.

In storyeditor_advanced.thtml, the textarea tag is already present if you copied this from storyeditor.thtml. If you look at the original code, only the name="introtext" is present within the textarea tag and not the id="introtext". So add id="introtext" to that tag and similarly for bodytext. The final tag should look like what Blaine has posted.

For any other template you change, similarly find the relevant textarea tag and include the id="nameoffield" part. Of course the ids have to be consistent between the script tag you add in the form and the id in the textarea tag.

Cheers!

Ajay


EDIT: On a different note, the reports on blank submit page results are related to a general failure of meta-refreshes....

After running fckeditor on Firefox, all metarefreshes fail. For example, i can try sumbitting on my site and then logout from this geeklog.net site and the logout screen redirect fails. So is this a Firefox bug? or FCKeditor one?


FCKeditor and Geeklog

Posted on: 19/06/05 01:43am
By: ajzz

A quick followup:

The failing of mozilla http-equiv="refresh" (used in lib-common.php) is listed as a bug in the FCKeditor bug-database.

I do not have adequate insight to determine if this is really a weakness in Mozilla or is just limited to FCK. Either ways, it seems browser specific. Now it makes sense that the logout or submit confirmations on my site sometimes fail sporadically after visiting other random websites using firefox - a browser restart temporarily solves the issue until another breaking page is encountered.

Are there any workarounds to using the http-equiv="refresh" in lib-common.php - any thoughts from the experts?

Regards,

Ajay

Edit: it seems only the same browser tab shows this problems... new or other tabs are reported to show normal behavior.

FCKeditor and Geeklog

Posted on: 19/06/05 09:27am
By: Blaine

Yes, the refresh issue is a Firefox/Mozilla bug and it effects not only our site but any site that uses the METAtag refresh method. Firefox is effected by any of these HTML editors including HTMLArea. Once loaded - any site you go to afterwards will get that blank page when you are redirected via a METATag refresh/redirect.

To see the probem. Access the fckeditor demo - IE will not be effected by this problem.
http://www.fckeditor.net/demo/default.html

Now access this test url I setup that should redirect you to google.com
http://www.portalparts.com/refreshtest.php

I am adding FCKEditor into GL's next release as the default Advanced Editor option with a new Editor layout. It includes the mcpuk image/file browser with thumbnail preview for adding/inserting images and maintaining an image library. You can even upload files and add a link to it, add a thumbnail/icon image that when clicked shows a larger image or downloads a file. SiteAdmin's will just need to enable the advanced editor mode to have this work out-of-the-box (assuming they use updated templates/theme).

As part of that work, we came across a few issues. We can change the way we do the page redirect but that will only benefit you while on a geeklog site. Once the browser session was loaded. Now .. I tested with the new Deerpark release and it does not have this issue.

Also the final release of FCKeditor 2.0 is expected next month.

The CVS version can be downloaded for testing to see/test the changes.
The team has been very busy

FCKeditor and Geeklog

Posted on: 19/06/05 11:29am
By: ajzz

Blaine, thanks for that overwhelmingly informative response. I look forward to all the updates and upgrades you talk about. Kudos to the team!

Ajay

FCKeditor - CVS Test Feedback

Posted on: 23/06/05 04:10pm
By: sorenson2743

Hi Blaine: As you asked for volunteers, I downloaded and installed the 1.3.12cvs version today, did the Pear d/l, etc., enabled the advanced editor in config.php and all that. Only used the supplied Professional theme, and no other modifications to the install apart from adjusting standard config.php switches for my installation and preferences. I did disable RSS, Trackback, Pingback and all those switches. If I recall, I did get an error on one of the screens shortly after the install was complete about "...back" (dunno which one) before I set the functionality switches to disabled. I don't intend to use them.

Some early comments about FCKeditor, using admin as editor user :

- still has the "blank page after submission" problem; I'm using 1.77 Mozilla under Suse 9.2 for both the editor and browsing (localhost); my version of Konquerer has never run properly in a javascript editor for some reason, but is useful for verifying the published page (see below); I know about this problem from earlier posts.
- inserting links works fine in editor and after publishing, including colourization, etc of the link.
- numbering and bulleting works fine, and appear correct after publishing.
- centre or right paragraph alignment work fine in the editor (show up), but do not get carried through after a save; just remains as normal left-justified paragraphs on the home page.
- bolding, italicizing similarly work fine in the editor, but do not get carried through after a save; just remains normal text when published/appearing on the home page.
- All these occur in both intro and body sections of editor.
- When publishing (saving) the editor seems to consistently put an extra carriage return between the intro and the body sections of the article, or so it seems afterwards on the "read more" page. That's for articles keyed in from scratch. I pasted in a couple of stories from other sites, and it looks as if they had 2 or three blank lines between the intro and body sections afterwards. Neither case was repairable by re-editing the article(s) and trying to delete or backspace over these (unfound) carriage returns.
- logging out seems to produce a blank screen too.

You probably know about the above functionality issues, but I thought I would let you know anyway. I don't see any table function, nor colour function, buttons. Is this the (almost) final version of functionality that is planned to be included in the next version?

BTW, I find the Professional theme (user) login (box) goes a bit strange. I'm pretty sure that right after installation, when I first logged in, it worked fine, i.e., enter admin, then tab, then password. But after I modified config.php as noted above, the next time I had to log in I entered admin, then tabbed, but the tab took me half-way between the name and password entry boxes so that when I keyed the password in, I wasn't keying anywhere. Required me to mouse the cursor to the password box. This same behaviour also happened on the Professional theme to me in 1.3.11 which is (only) one of the reasons I switched to the Webside theme, where the problem has never occurred. May just be my environment, but thought I would let you know.

Let me know if you would like me to test a newer CVS version for you. In the meantime I will continue with testing other functionality. Cheers.

FCKeditor and Geeklog

Posted on: 23/06/05 04:20pm
By: Dirk

[QUOTE BY= sorenson2743] - When publishing (saving) the editor seems to consistently put an extra carriage return between the intro and the body sections of the article, or so it seems afterwards on the "read more" page. [/QUOTE]
That's actually Geeklog's fault (or an odd "feature"): It always puts 2 BR tags between the intro and the body text.

You can get rid of this by using {story_text_no_br} instead of {story_introtext} in the story template files.

[QUOTE BY= sorenson2743] BTW, I find the Professional theme (user) login (box) goes a bit strange. I'm pretty sure that right after installation, when I first logged in, it worked fine, i.e., enter admin, then tab, then password. But after I modified config.php as noted above, the next time I had to log in I entered admin, then tabbed, but the tab took me half-way between the name and password entry boxes so that when I keyed the password in, I wasn't keying anywhere.[/QUOTE]
That's probably because of the (optional) drop-down menu that can now appear between the two fields (for remote authentication). That will have to be fixed ...

bye, Dirk

FCKeditor and Geeklog

Posted on: 23/06/05 04:26pm
By: Dirk

Hmm, spoke too soon - tabs in the login box work just fine for me, in 1.3.11 and in 1.3.12cvs.

bye, Dirk

FCKeditor and Geeklog

Posted on: 23/06/05 04:38pm
By: Blaine

[QUOTE BY= sorenson2743]
Some early comments about FCKeditor, using admin as editor user :

- still has the &quot;blank page after submission&quot; problem; I'm using 1.77 Mozilla under Suse 9.2 for both the editor and browsing (localhost); my version of Konquerer has never run properly in a javascript editor for some reason, but is useful for verifying the published page (see below); I know about this problem from earlier posts.
- inserting links works fine in editor and after publishing, including colourization, etc of the link.
- numbering and bulleting works fine, and appear correct after publishing.
- centre or right paragraph alignment work fine in the editor (show up), but do not get carried through after a save; just remains as normal left-justified paragraphs on the home page.
- bolding, italicizing similarly work fine in the editor, but do not get carried through after a save; just remains normal text when published/appearing on the home page.
- All these occur in both intro and body sections of editor.
- When publishing (saving) the editor seems to consistently put an extra carriage return between the intro and the body sections of the article, or so it seems afterwards on the &quot;read more&quot; page. That's for articles keyed in from scratch. I pasted in a couple of stories from other sites, and it looks as if they had 2 or three blank lines between the intro and body sections afterwards. Neither case was repairable by re-editing the article(s) and trying to delete or backspace over these (unfound) carriage returns.
- logging out seems to produce a blank screen too.[/QUOTE]

Thanks for the taking time to test and the feedback.

I suspect the reason why the font styling and padding did not show up was due to your allowable HTML.

Italic style uses the &lt; em &gt; tag.
Bold style uses the &lt; strong &gt; tag
Text color and background use the &lt; font &gt; tag
Indent right uses the &lt; blockquote &gt; tag

Example additions in config.php for allowable HTML Tags would be:

'font' =&gt; array('face' =&gt; 1, 'size' =&gt; 1,'color' =&gt; 1),
'blockquote' =&gt; array(),
'em' =&gt; array(),
'strong' =&gt; array(),

The toolbar is very easy to customize, add/remove change order to suit site specific needs. Some will want only the basic set and others will want the full blown editor with table and form features.


FCKeditor and Geeklog

Posted on: 24/06/05 10:56am
By: vinny

[QUOTE BY= Blaine]
'font' => array('face' => 1, 'size' => 1,'color' => 1),
'blockquote' => array(),
'em' => array(),
'strong' => array(),
[/QUOTE]

Blaine, any reason not to add these to config.php in the user html section (by default)? If not, do you want to do it or should I?

-Vinny

FCKeditor and Geeklog

Posted on: 24/06/05 11:26am
By: Blaine

Vinny,

Adding the em and strong and maybe blockquote are fine. I suspect adding the font tag attribute will be fine as well but I know we were nervous of it in the past because it's possible to add javascript to a font tag attribute. I suspect that would now be filtered out but need to double check. If it's felt that we are not opening any XSS attack issues then I agree.

FCKeditor and Geeklog

Posted on: 24/06/05 01:48pm
By: DTrumbower

[QUOTE BY= Blaine] Vinny,

Adding the em and strong and maybe blockquote are fine. I suspect adding the font tag attribute will be fine as well but I know we were nervous of it in the past because it's possible to add javascript to a font tag attribute. I suspect that would now be filtered out but need to double check. If it's felt that we are not opening any XSS attack issues then I agree.[/QUOTE]

It would be be nice to have the tags in the config.php, even if they are commented out with a note why. Have a note by the editor switch, telling admins to uncomment allowable html.

FCKeditor and Geeklog

Posted on: 24/06/05 04:41pm
By: Anonymous

FWIW, I believe that GL should follow through with putting all possible and reasonable tags in config.php, including table and image stuff, so that the admin just has to enable or disable what is needed for that installation. As long as the tags work properly, that is.

The alternative is to have a default "not very rich looking" editor, and a lot of queries at the forum for "how do I enable ....".

Certainly left-centre-right alignment, bullets and numbering, bolding and italics, link and graphic insertion should work out of the box. Tables would really be nice.

FCKeditor and Geeklog

Posted on: 24/06/05 04:56pm
By: Dirk

[QUOTE BY= Sorenson2743] FWIW, I believe that GL should follow through with putting all possible and reasonable tags in config.php, including table and image stuff[/QUOTE]
Tables are in the default list (although for admins only) and you certainly don't want images in there ...

The default selection is a bit spartanic but it was sufficient, IMO, so far. Of course it should be extended such that it works with FCKeditor "out of the box".

bye, Dirk

FCKeditor and Geeklog

Posted on: 31/08/05 03:37pm
By: gkam

[QUOTE BY= Blaine] You may want to try the latest CVS version of geeklog if this is a non-production site. I have the latest version of FCKeditor integrated as an out-of-the-box option if you enable the advanced Editor option in config.php.

I've made quite a few other edits to the advanced editor and am interested in more users testing as well.

Note: FCKeditor 2.0 version is currently final candiate (FC) with an expected final release in July.
[/QUOTE]
Does FCKeditor 2.0 work with the stable release of geeklog 1.3.11sr1 ? Do I use the same procedure as you have specified.

FCKeditor and Geeklog

Posted on: 04/09/05 12:53am
By: Anonymous

[QUOTE BY= gkam] [QUOTE BY= Blaine] You may want to try the latest CVS version of geeklog if this is a non-production site. I have the latest version of FCKeditor integrated as an out-of-the-box option if you enable the advanced Editor option in config.php.

I've made quite a few other edits to the advanced editor and am interested in more users testing as well.

Note: FCKeditor 2.0 version is currently final candiate (FC) with an expected final release in July.
[/QUOTE]
Does FCKeditor 2.0 work with the stable release of geeklog 1.3.11sr1 ? Do I use the same procedure as you have specified. [/QUOTE]

Works well with GL 1.3.11SR 1. I've just installed it.

FCKeditor and Geeklog

Posted on: 04/09/05 01:21pm
By: gkam

I finallly did that too. geeklog 1.3.11sr1 with fckeditor 2.0. However, I still experience the problem 'The failing of mozilla http-equiv="refresh" (used in lib-common.php)' with firefox result in blank page. Did you run into the same problem ?

FCKeditor and toolbars

Posted on: 06/09/05 04:35am
By: Anonymous

Anyone managed to change/customise the toolbars?

I have it running smoothly here:
http://wolispace.com/cow

Creative Object World (cow) where you can:
create a comfy chair worth 20 pennies
paint it as green
write in it
site in it

FCKeditor and Geeklog

Posted on: 10/09/05 10:47am
By: sorenson2743

Blaine, just downloaded the latest &quot;geeklog-cvs-nightly&quot; ... latest file inside seems to be Sept 10th, so it looks as if it was just updated. Also Pear. Activated the advanced editor via config.php, but I seem to be encountering some problems.

The main one is that, after I have created an article and saved it, I can no longer modify it in advanced mode, just in &quot;plain test&quot; mode. Just completely dead, inert text sits there. Cannot delete text, enrich it (i.e., bold) and whatnot, either in the intro or body sections. FWIW, trying to fix errors in plain-text mode, after initial creation via html mode, is somewhat difficult and discouraging.

I'm running the newly-genned site off the web in &quot;localhost&quot; mode. Could this be the issue? I seem to remember a post about &quot;www&quot; but I can't remember if that was about FCK or Spaw.

Tried using the advanced editor with Konquerer, Mozilla and Firefox, but all act the same. This is your plain-jane install on a Suse 9.3 base. Still have the Mozilla blank-page issue, but that's no problem because all article-writing will be done by only me, the admin.

BTW, when I press the &quot;source&quot; button in the editor, I get a 404 - Object Not Found error box. Also, is there no cut/past/copy functionality in the editor (like bold, indent, etc)?

Is there some other mods that I should be making to the CVS load? From prior posts I assumed that it was an &quot;out of the box&quot; install procedure.

Any estimate on when we should see 1.3.12 out, with a solid advanced editor?

Finally, should I just dump FCKeditor and try Xinha (or whatever it is called)? Installation looks a little complicated for me, but WTH.

FCKeditor and Geeklog

Posted on: 10/09/05 04:46pm
By: Dirk

[QUOTE BY= sorenson2743] Still have the Mozilla blank-page issue[/QUOTE]
Just wanted to point out that this problem appears to be fixed in Firefox 1.5 Beta 1.

bye, Dirk

FCKeditor and Geeklog

Posted on: 27/10/05 10:58pm
By: Anonymous

Whats the secret to expanding the height of the textarea when the fckeditor is enabled? I don't want all of the textareas taller, just a couple, ie body of the story.

FCKeditor and Geeklog

Posted on: 27/10/05 11:04pm
By: Blaine

Are you referring to the implementation of the FCKEditor in the current CVS version of GL as I have added the feature to allow the user to resize the editor area dynamically as you are editing a story.

FCKeditor and Geeklog

Posted on: 27/10/05 11:15pm
By: anuenue

Yes. I have created all of the _advanced.thtml files and want to give some of the textareas more height. I am running the latest download and have installed the fckeditor manually.

FCKeditor and Geeklog

Posted on: 27/10/05 11:31pm
By: Blaine

Does not sound like you are using the GL version from CVS with the integrated FCKedtor and new Advanced Editor options.

FCKeditor and Geeklog

Posted on: 28/10/05 01:18am
By: samstone

Anuenue,

Increase the row number and col number in the section weather the textarea is. In case of storyeditor it's around the middle of the thtml page.

Sam

FCKeditor and Geeklog

Posted on: 28/10/05 09:31am
By: anuenue

I've already done that. I increased the number of rows for the bodytext (in storyeditor_advanced.thtml) from 15 rows to 35. There is no change in the height.

FCKeditor and Geeklog

Posted on: 28/10/05 10:29am
By: samstone

Interesting, that doesn't work.

Why don't you try TinyMCE, which is very simple to install. Do a search on this forum and you will find the instruction. I installed TinyMCE with its image editor and works like a charm.

And the col and row adjustment works in the above way.

Sam


FCKeditor and Geeklog

Posted on: 28/10/05 04:07pm
By: anuenue

[QUOTE BY= Blaine] Does not sound like you are using the GL version from CVS with the integrated FCKedtor and new Advanced Editor options.[/QUOTE]

I'm running Geeklog 1.3.11sr2.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=41341