Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 03:32 pm EDT

Geeklog Forums

How to enable FCKEditor in Block ?


Status: offline

logika

Forum User
Newbie
Registered: 02/08/07
Posts: 4
How can I enable FCKEditor in Block ? Because I need to Edit Full HTML Format in WYSIWYG.
Please tell me step by step ok.
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
I've posted a step by step in the past. Please do a search.

Sam
 Quote

Status: offline

logika

Forum User
Newbie
Registered: 02/08/07
Posts: 4
Sorry Sam....I've tried searched...but cannot find....Would you please...please give me the step by step to enable FCKEditor in Block. thanks
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Edit the file "blockeditor.thtml" found in /layout/{professional}/admin/block/ with the following codes at the top:

Text Formatted Code
<script type="text/javascript">
    // Setup editor path for FCKeditor JS Functions
    geeklogEditorBasePath = "{site_url}/fckeditor/" ;
    window.onload = function() {
        var oFCKeditor1 = new FCKeditor( 'content' ) ;
        oFCKeditor1.Config['CustomConfigurationsPath'] = geeklogEditorBaseUrl + '/fckeditor/myconfig.js';
        oFCKeditor1.BasePath = geeklogEditorBasePath;
        oFCKeditor1.ToolbarSet = 'editor-toolbar1';
        oFCKeditor1.Height = 200 ;
        oFCKeditor1.ReplaceTextarea() ;
    }
</script>


Notice the word 'content' in the line:
var oFCKeditor1 = new FCKeditor( 'content' ) ;

That word is the textarea id.

Scroll down to find the textarea code like this one:
Text Formatted Code
<td><textarea name="content" rows="12" style="width:100%;">{block_content}</textarea><br>


Add id="content" so that it will look like the following:
Text Formatted Code
<td><textarea id="content" name="content" rows="12" style="width:100%;">{block_content}</textarea><br>


---Note---
If you want more advanced editor buttons, change "editor-toolbar1" to "editor-toolbar2" in the codes at the top.
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Thanks Sam! You already described how to put FCKed into the mail editor.
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
I tried to activate the editor in blocks again but in 1.8.2 there seems to be a change in the procedure?
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Ah, was my error. It is the same procedure as every year!

Which makes me wonder if this activation should take place automatically when chosing the editor for stories?
 Quote

All times are EDT. The time is now 03:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content