Welcome to Geeklog Wednesday, May 22 2013 @ 05:02 AM EDT
|
||||||||
![]() |
Forum Index > Support > Plugin Support |
New Topic
|
Post Reply
|
How to enable FCKEditor in Block ? |
|||
| logika |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() 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. |
||||||
|
|||||||
| samstone |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 09/29/02 Posts: 820 |
I've posted a step by step in the past. Please do a search.
Sam |
||||||
|
|||||||
| logika |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() 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
|
||||||
|
|||||||
| samstone |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 09/29/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. |
||||||
|
|||||||
| 1000ideen |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 08/04/03 Posts: 1273 |
Thanks Sam! You already described how to put FCKed into the mail editor.
|
||||||
|
|||||||
| 1000ideen |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 08/04/03 Posts: 1273 |
I tried to activate the editor in blocks again but in 1.8.2 there seems to be a change in the procedure?
|
||||||
|
|||||||
| 1000ideen |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 08/04/03 Posts: 1273 |
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? |
||||||
|
|||||||
| Content generated in: 0.83 seconds |
|
|
|