Welcome to Geeklog, Anonymous Thursday, March 13 2025 @ 03:14 pm EDT
Geeklog Forums
How to enable FCKEditor in Block ?
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:
// 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:
Add id="content" so that it will look like the following:
---Note---
If you want more advanced editor buttons, change "editor-toolbar1" to "editor-toolbar2" in the 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.
26
25
Quote
All times are EDT. The time is now 03:14 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