Welcome to Geeklog Monday, November 18 2019 @ 04:36 pm EST

Geeklog Forums

How to enable FCKEditor in Block ?


Status: offline

logika

Forum User
Newbie
Registered: 08/02/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.

Status: offline

samstone

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

Sam

Status: offline

logika

Forum User
Newbie
Registered: 08/02/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

Status: offline

samstone

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

PHP 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:
PHP 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:
PHP 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.

Status: offline

1000ideen

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

Status: offline

1000ideen

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

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1294
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?

All times are EST. The time is now 04:36 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