FCKeditor

  • Post Author:
  • Post Category:
  • Post last modified:February 8, 2020

This is cool!
I’ve been searching for a stuff like this one. From now on, I would be able to weblog more easily using FCKeditor.

Thanks Robert Crow and Open Source community making FCKeditor.

I’ve scripted Robert Crow’s original text from his blog.


This is how to install FCKeditor, which is a WYSIWYG HTML editor that can be used in the ExpressionEngine Control Panel to make it much easier for both technical and non-technical users alike to create and edit ExpressionEngine entries.

These instructions have been tested by us using ExpressionEngine Version 1.2.1 Build ID: 20050115 and FCKeditor 2.0 RC2.

Step 1:

Download FCKeditor 2.0 RC2

Decompress the downloaded file (double-click it).

Rename the folder FCKeditor to fckeditor (i.e. change the first 3 letters (FCK) to lowercase, i.e. fck).

Step 2:

Upload the fckeditor folder to the root of your public html folder on the Web server where you have ExpressionEngine installed. To keep the installation instructions simple, don’t change the name of the fckeditor folder. You can change the folder name and move it somewhere else on your server, but I’ll skip over that for now.

Step 3:

Add this function to /system(if you renamed it, whatever you renamed it to)/cp/cp.publish.php just below the setFieldName function:

// Dynamically set the textarea name on a DblClick

function setFieldName2(which)
{
if (which != selField)
{
selField = which;

clear_state();

tagarray = new Array();
usedarray = new Array();

var oFCKeditor = new FCKeditor( selField ) ;
oFCKeditor.ReplaceTextarea() ;

}
}

Edit line 703 (line number after adding function above) to look like this:

$DSP->input_textarea('field_id_'.$row['field_id'], $field_data, $rows, 'textarea', '99%', "ondblclick='setFieldName2(this.name)'", "onclick='setFieldName(this.name)'", $convert_ascii);

Step 4:

Add this line in /system(if you renamed it, whatever you renamed it to)/cp/cp.display.php after line 182:

"<script type='text/javascript' src='/fckeditor/fckeditor.js'></script> ";

Change the line above the one you just added to look like this:

"<meta http-equiv= 'pragma' content='no-cache' /> ".

The original code looks like this:

"<meta http-equiv= 'pragma' content='no-cache' /> ";

All we’re doing here is replacing the semi-colon at the end of the line with a period so that the following line (the one you just added) gets executed.

THAT’S IT! FCKeditor shoud fire up when you double-click in the summary, body or extended text boxes while creating/editing an entry in the Control Panel.

Mac OS X compatibility: FCKeditor doesn’t work with Safari on Mac OS X, but it does work with FireFox 1.0.

Windows XP compatibility: FCKeditor doesn’t work with IE 6.0, but it does work with Firefox 1.0.

I hope you have an easier time getting FCKeditor working than I did. In other words, where was I when I really needed me?

Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
follow me
  • RT @not_unot_u: 네 번째 올리신 청원글이에요. 너무 고생하고 계시는데 동의 한 번 씩 부탁드립니다. 거의 다 왔습니다! 7월 11일 마감인데 이제 2만명만 채우면 청와대 답변 받을 수 있어요. https://t.co/3mVDM3jsrP
    15 hours ago
  • 그런데 전화를 받은 윤석열 검찰총장이 박 장관에게 ‘(조국 후보자가) 이제 그만 물러나라는 뜻으로 제가 (압수수색을) 지시했습니다’ 이렇게 말했다는 거지. 윤석열을 대통령으로 뽑은 기억은 없는데 희안하구만 https://t.co/yEEQXfey4g
    21 hours ago
  • 훌륭한 시스템을 체험하지 못한 사람이 시스템의 부재로 야기되는 문제를 인식할 수 있을까? “난 잘하고 있는데 왜 너는 자꾸 불평하느냐?”라고 생각하지 않을까?
    2 days ago
Buy me a coffeeBuy me a coffee
×
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
Latest Posts