최근 포토로그


FCK 에디터 설치, 그리고 기본 설정 (FCK Editor) LINUX/UNIX

FCK Editor v2.4.3

 

복사만으로 간단하게 설치가 되지만, 그대로는 사용할 수가 없다.

설치후에 기본적으로 설정해야 하는 것들을 정리해 본다.

 

 

FCKeditor_2.6.4.1.zip 

 

  

 

1. 환경 설정하기

fckeditor/fckconfig.js 파일에 필요한 대부분의 필요한 환경 설정을 할 수 있다.

먼저 기본으로 설정해야 할 환경에 대해서 알아본다.

 

서버스크립트별로 주석으로 표시되어 있는 부분을 해제 시켜준다.

FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%>

 

기본언어를 한글로 바꿔준다.

FCKConfig.DefaultLanguage  = 'kr' ;

 

편집중 엔터 또는 쉬프트+엔터에 대한 사입할 태그를 선택한다.

FCKConfig.EnterMode = 'div' ;   // p | div | br
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br


링크 서버 보기 기능을 없애준다. 서버보기를 통해 불필요한 파일에 대한 업로드 방지와 보안의 일환으로 없애는 것이 좋다.

FCKConfig.LinkBrowser = false ;


이미지 서버 보기 기능을 없애준다.

FCKConfig.ImageBrowser = false ;


플래시 서버 보기 기능을 없애준다.

FCKConfig.FlashBrowser = false ;


여기까지는 보통 새 버전이 나올때마다 또는 새로 설치할 때마다 반드시 확인해줘야 하는 사항이다.

두번째로 종종 사용되는 기능에 대해 알아본다.

 

이모티콘을 추가해보자. 자신만의 이모티콘이 있다면 별도의 폴더에 저장하고 경로를 설정해준 다음 각각의 파일명을 등록하면 된다.

FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ;
FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif',

'tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif',

'angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif',

'thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;


툴바를 내맘데로 바꿔보자.

FCKConfig.ToolbarSets["MyToolbar"] = [
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],['Image']
] ;
이렇게 별도로 추가한 다음에 fckeditor를 생성하는 스크립트에서는 아래처럼 지정해 주면 된다.

Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.ToolbarSet = "MyToolbar"
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = ""
oFCKeditor.Height = 400
oFCKeditor.Width = 780
oFCKeditor.Create "content"

2. 용량이 큰 이미지를 업로드 하기 위하여 설정할 사항

가끔 이미지가 크다 싶으면 업로드가 안되는 경우가 있다. 이것은 서버의 설정 문제이다.

아래 포스트에 자세한 내용이 있다.

http://blog.naver.com/neofanta.do?Redirect=Log&logNo=120039036389

 

3. 한글로된 이미지파일명을 제대로 업로드하고 보여주기

한글이 섞인 파일명으로된 이미지를 업로드하면 업로드는 되는데 표시가 안되고 엑스박스가 나오게 된다. 페이지 케릭터셋을 변경해주어 해결할 수 있다. 아래 굵은 글씨로 되어있는 부분을 추가한다.

 

fckeditor/editor/filemanager/upload/asp/upload.asp

<%@ CodePage=65001 Language="VBScript"%>
<%
Option Explicit
Response.Buffer = True
Response.CharSet = "UTF-8"


 

4. 이미지 업로드 경로를 변경하기

fckeditor/editor/filemanager/upload/asp/config.asp 파일에서 아래의 내용을 변경하면 원하는 곳에 저장할 수 있다.

ConfigUserFilesPath = "/files/fck/"


 

5. 이미지 주소 형태 변경하기

이미지를 업로드하게 되면 주소가 /files/fck/image.gif 처럼 전체 경로로 되어있지 않아서 사이트 내에서는 아무런 오류가 없지만, 만약 입력된 내용으로 이메일이라도 보내게 되면 이미지가 하나도 나오지 않게 된다.

이미지 태그가 아래처럼 만들어지기 때문이다.

<img src="/files/fck/image.gif">

그렇기 때문에 이미지가 어느 서버에 있는지 알수가 없어서 엑스박스로 나오게 된다. 이것은 이미지를 입력할때 해당 이미지의 전체 주소의 형태로 태그가 만들어지면 해결될수 있는 문제이다.

아래의 포스트에 자세한 내용이 있다.

http://blog.naver.com/neofanta.do?Redirect=Log&logNo=120045457520


6. 편집기 안의 툴바에서 폰트목록에 굴림, 돋움체 추가하기

/fckeditor/fckconfig.js 파일을 열자.

아래 내용으로 변경하고 더 원하는 폰트가 있으면 추가한다.

FCKConfig.FontNames  = '굴림;굴림체;돋움;돋움체;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;

 

위처럼 추가를 해도 처음 편집기안에 커서가 위치하게 되면 기본 폰트가 굴림이 아니라 Arial로 되어있다. 매번 변경할 필요 없이 스타일 파일의 기본 폰트를 변경하여 매번 폰트를 바꿔줘야 하는 불편함을 없앨 수 있다.

/fckeditor/editor/css/fck_editorarea.css

body, td
{
 font-family: Gulim, Arial, Verdana, Sans-Serif;
 font-size: 12px;
}




핑백

덧글

  • Robert 2017/05/08 18:36 # 삭제 답글

    I needed to thank you for this good read!! I certainly enjoyed every little bit of it. I've got you bookmarked to check out new stuff you post
  • Richard 2017/05/27 12:15 # 삭제 답글

    A big thank you for your article.Really thank you! Cool.
  • William 2017/06/05 00:57 # 삭제 답글

    Howdy! Would you mind if I share your blog with my twitter group? Theres lots of people that I believe would really enjoy your content. Please let me know. Thanks
  • Daniel 2017/06/07 16:49 # 삭제 답글

    butenafine solubility
  • George 2017/06/16 06:05 # 삭제 답글

    Would you be taken with exchanging links?
  • Daniel 2017/06/21 20:54 # 삭제 답글

    Hi Dear, are you in fact visiting this website daily, if so then you will definitely take fastidious knowledge.
  • Paul 2017/08/01 11:32 # 삭제 답글

    Informative Site Hello guys here are some links that contains information which you might find useful yourselves. It is Worth Checking out.
  • George 2017/08/07 18:43 # 삭제 답글

    I gotta favorite this internet site it seems handy very useful
  • David 2017/08/09 04:54 # 삭제 답글

    Hey! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Many thanks!
  • Robert 2017/08/23 21:01 # 삭제 답글

    Today, while I was at work, my sister stole my apple ipad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is entirely off topic but I had to share it with someone!
  • Charles 2017/08/25 00:02 # 삭제 답글

    I simply couldn't depart your site prior to suggesting that I actually loved the standard info an individual supply for your guests? Is going to be back regularly in order to inspect new posts.
  • Daniel 2017/08/28 08:47 # 삭제 답글

    Good blog! I really love how it is easy on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your feed which must do the trick! Have a nice day!
  • Joseph 2017/09/01 07:13 # 삭제 답글

    Im not that much of a online reader to be honest but your blogs really nice, keep it up! I'll go ahead and bookmark your site to come back later. Cheers
  • David 2017/09/01 10:35 # 삭제 답글

    There is visibly a bundle to realize about this. I assume you made certain nice points in features also.
  • Thomas 2017/09/03 05:59 # 삭제 답글

    I really like your writing style, great info, thank you for putting up
  • Mark 2017/09/13 21:53 # 삭제 답글

    I will immediately grab your rss feed as I can not find your email subscription link or enewsletter service. Do you've any? Please let me know in order that I could subscribe. Thanks.
  • William 2017/09/21 03:25 # 삭제 답글

    weblog. Loads of gratitude sharing.
  • David 2017/09/28 10:06 # 삭제 답글

    Wonderful site. Plenty of useful info here. I'm sending it to a few pals ans additionally sharing in delicious. And naturally, thank you to your sweat!
  • Daniel 2017/10/01 09:31 # 삭제 답글

    But a smiling visitor here to share the love , btw outstanding layout.
  • Charles 2017/10/09 00:50 # 삭제 답글

    if making snowfall leaps Hermes purses And totes operating 3ounce throwaway duplicate Hermes cups of coffee or even a conforms icle, pour the juices a mixture on the road to these kind of people until it is they have been perfect possessions wall plug ecommerce better than nearly full.
  • James 2017/10/13 14:45 # 삭제 답글

    Do you have a spam problem on this site I also am
  • John 2017/10/15 09:22 # 삭제 답글

    While think this kind of Real estate property industry hope against hope turn back in the positive course? Or maybe can it be at a standstill very young to tell? We're glimpse many terracing property foreclosures modish
  • John 2017/10/20 01:26 # 삭제 답글

    It is rare for me to uncover something on the web thats as entertaining and intriguing as what you have got here. Your page is sweet, your graphics are great, and whats much more, you use source that are relevant to what youre saying. That you are undoubtedly one in a million, well done!
  • Charles 2017/11/03 01:30 # 삭제 답글

    Good day! I know this is kind of off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having problems finding one? Thanks a lot!
  • James 2017/11/16 09:40 # 삭제 답글

    I've read some excellent stuff here. Definitely price bookmarking for revisiting. I surprise how much effort you place to create this type of great informative site.
  • Daniel 2017/11/30 17:39 # 삭제 답글

    I really like your writing style, good information, regards for putting up
  • William 2017/12/03 07:30 # 삭제 답글

    As a Newbie, I am continuously searching online for articles that can aid me. Thank you
  • Joseph 2017/12/06 14:25 # 삭제 답글

    I am so grateful for your blog article.Really thank you! Fantastic.
  • James 2017/12/08 18:15 # 삭제 답글

    As soon as I found this internet site I went on reddit to share some of the love with them.
  • Richard 2017/12/13 06:52 # 삭제 답글

    If you are going for best contents like myself, simply go to see this site all
  • George 2017/12/14 03:05 # 삭제 답글

    you may have an important weblog here! would you prefer to make some invite posts on my blog?
  • Paul 2017/12/16 19:08 # 삭제 답글

    Very neat article post.Much thanks again. Much obliged.
  • David 2017/12/24 17:38 # 삭제 답글

    I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You've made my day! Thanks again!
  • Paul 2017/12/28 04:48 # 삭제 답글

    Thanks for sharing it
  • Donald 2017/12/31 23:23 # 삭제 답글

    Spot lets start off perform on this writeup, I seriously consider this astounding internet site needs much more consideration. Ill apt to become once again to find out to read considerably a lot more, thank you that information.
  • David 2018/01/01 23:17 # 삭제 답글

    I truly appreciate this post. I've been looking all over for this! Thank goodness I found it on Bing. You've made my day! Thanks again!
  • James 2018/01/05 19:11 # 삭제 답글

    There is visibly a bundle to realize about this. I assume you made certain nice points in features also.
  • Paul 2018/01/13 07:02 # 삭제 답글

    Just wanna input on few general things, The website pattern is perfect, the subject material is real excellent. Believe those who are seeking the truth. Doubt those who find it. by Andre Gide.
  • William 2018/01/17 13:44 # 삭제 답글

    What's up it's me, I am also visiting this site daily, this website is actually pleasant and the visitors are really sharing fastidious thoughts.
  • John 2018/01/19 22:09 # 삭제 답글

    I got what you intend, thankyou for putting up.Woh I am glad to find this website through google. It is a very hard undertaking to seek to please everybody. by Publilius Syrus.
  • George 2018/01/22 23:50 # 삭제 답글

    Some really nice and useful information on this web site, also I conceive the style and design holds superb features.
  • David 2018/01/31 07:00 # 삭제 답글

    I like what you guys are up too. This kind of clever work and exposure!
  • George 2018/02/22 05:52 # 삭제 답글

    Just wanna input on few general things, The website pattern is perfect, the subject material is real excellent. Believe those who are seeking the truth. Doubt those who find it. by Andre Gide.
  • Joseph 2018/02/23 00:47 # 삭제 답글

    My spouse and I stumbled over here by a different internet address and thought I might check items out. I like what I see so i am just following you. Appear forward to checking out your web page again.
  • David 2018/02/26 21:28 # 삭제 답글

    I think this is among the most significant info for me. And i am glad reading your article. But want to remark on some general things, The website style is wonderful, the articles is really great D. Good job, cheers
  • Paul 2018/03/06 22:07 # 삭제 답글

    Magnificent beat ! I wish to apprentice even as you amend your site, how could i subscribe for a blog web site? The account helped me a acceptable deal. I were a little bit acquainted of this your broadcast offered bright transparent concept
  • Paul 2018/03/08 21:26 # 삭제 답글

    Just wanna input on few general things, The website pattern is perfect, the subject material is real excellent. Believe those who are seeking the truth. Doubt those who find it. by Andre Gide.
  • James 2018/03/09 10:29 # 삭제 답글

    I've read some excellent stuff here. Definitely price bookmarking for revisiting. I surprise how much effort you place to create this type of great informative site.
  • William 2018/03/12 20:18 # 삭제 답글

    This is really attentiongrabbing, You're a very professional blogger. I have joined your rss feed and sit up for in search of extra of your fantastic post. Also, I have shared your site in my social networks!
  • Mark 2018/03/29 05:05 # 삭제 답글

    Once I initially commented I clicked the Notify me when new feedback are added checkbox and now each time a remark is added I get four emails with the same comment. Is there any way you possibly can remove me from that service? Thanks!
  • Thomas 2018/03/31 00:59 # 삭제 답글

    Hello! This post could not be written any better! Reading through this post reminds me of my good
  • Richard 2018/04/05 03:26 # 삭제 답글

    you use disallowed a designer to make the style? Superb vocation!
  • Mark 2018/04/12 15:02 # 삭제 답글

    1000s of Show Gambler, since the Lastly associated with Sept ..
  • Thomas 2018/04/23 18:37 # 삭제 답글

    When choosing the colours for you office, there are a few basic points to consider.
  • Richard 2018/05/05 04:20 # 삭제 답글

    I actually got into this post. I located it to be fascinating and loaded with exclusive points of interest. I like to read material that makes me believe. Thank you for writing this fantastic content.
  • George 2018/05/16 14:28 # 삭제 답글

    I loved your blog article. Really Cool.
  • John 2018/06/02 00:01 # 삭제 답글

    Today, while I was at work, my sister stole my apple ipad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!
  • Mark 2018/06/04 23:44 # 삭제 답글

    Hey, thanks for the blog article.Really looking forward to read more. Much obliged.
  • Michael 2018/06/13 06:54 # 삭제 답글

    obviously like your website but you have to check the spelling on several of your posts. Several of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless Ill definitely come back again.
  • George 2018/06/15 23:13 # 삭제 답글

    I've been absent for a while, but now I remember why I used to love this site. Thank you, I'll try and check back more frequently. How frequently you update your site?
  • George 2018/06/19 04:44 # 삭제 답글

    It is also possible that Zynga's chosen advertising network is to blame if we
  • Daniel 2018/06/21 05:13 # 삭제 답글

    I'm pleased that I seen this website, precisely the proper information that I was trying to find!
  • David 2018/06/21 05:13 # 삭제 답글

    Wonderful blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Appreciate it
  • Daniel 2018/06/21 05:13 # 삭제 답글

    I really appreciate this post. I've been looking all over for this! Thank goodness I found it on Bing. You've made my day! Thanks again!
  • John 2018/06/21 20:49 # 삭제 답글

    Magnificent beat ! I wish to apprentice even as you amend your site, how could i subscribe for a blog web site? The account helped me a acceptable deal. I were a little bit acquainted of this your broadcast offered bright transparent concept
  • Daniel 2018/06/28 15:09 # 삭제 답글

    I really enjoy the article post. Cool.
  • David 2018/06/30 02:53 # 삭제 답글

    mometasone spray over counter
  • Michael 2018/07/03 09:49 # 삭제 답글

    I dugg some of you post as I cogitated they were very useful extremely helpful
  • Michael 2018/07/06 01:53 # 삭제 답글

    There is numerous separate years Los angeles Weight reduction eating plan with each a person can be a necessity. The pioneer part can be your original obtaining rid of belonging towards the extra pounds. la weight loss
  • James 2018/07/18 17:29 # 삭제 답글

    I like the valuable info you provide in your articles. I will bookmark your blog and check again here regularly. I am quite certain I'll learn a lot of new stuff right here! Best of luck for the next!
  • Thomas 2018/07/24 22:17 # 삭제 답글

    I think this is a real great blog post.Much thanks again.
  • George 2018/07/27 17:15 # 삭제 답글

    Good website! I truly love how it is easy on my eyes and the data are well written. I'm wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a great day!
  • Daniel 2018/08/05 05:17 # 삭제 답글

    Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way Ill be subscribing to your feeds and even I achievement you access consistently rapidly.
  • Joseph 2018/08/09 22:44 # 삭제 답글

    Immigration ...the time to read or check out the content or sites we have linked to below the...
  • Joseph 2018/08/24 11:27 # 삭제 답글

    Surely together with your thoughts here and that i adore your blog! Ive bookmarked it making sure that I can come back &amp read more inside the foreseeable future.
  • Joseph 2018/08/30 10:26 # 삭제 답글

    hi!,I really like your writing so so much! proportion we communicate more about your post on AOL? I need a specialist on this space to unravel my problem. Maybe that's you! Looking ahead to see you.
  • Michael 2018/08/31 22:52 # 삭제 답글

    This website is mostly a walkby for all the info you wished about this and didnt know who to ask. Glimpse right here, and also youll undoubtedly uncover it.
  • Charles 2018/09/04 06:20 # 삭제 답글

    I think this is one of the most important info for me. And i am glad reading your article. But wanna remark on few general things, The web site style is ideal, the articles is really excellent D. Good job, cheers
  • Joseph 2018/09/06 23:15 # 삭제 답글

    I have recently started a web site, the info you provide on this site has helped me greatly. Thank you for all of your time &amp work. There can be no real freedom without the freedom to fail. by Erich Fromm.
  • Michael 2018/09/13 21:14 # 삭제 답글

    I got what you intend, thankyou for putting up.Woh I am lucky to find this website through google. Being intelligent is not a felony, but most societies evaluate it as at least a misdemeanor. by Lazarus Long.
  • Paul 2018/09/18 11:16 # 삭제 답글

    Hello. excellent job. I did not expect this. This is a great story. Thanks!
  • Richard 2018/09/22 08:00 # 삭제 답글

    Hi there! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us beneficial information to work on. You have done a marvellous job!
  • Daniel 2018/09/23 22:13 # 삭제 답글

    I'm trying to find sites that have already fantastic useful information on what's popular and what is the optimum makeup products is..
  • William 2018/09/25 15:53 # 삭제 답글

    1000s of Show Gambler, since the Lastly associated with Sept ..
  • Paul 2018/09/27 07:54 # 삭제 답글

    I feel like Im regularly seeking interesting features you just read about a number of subjects, but I handle to add in the blog among our translates every day when you
  • Joseph 2018/09/29 05:27 # 삭제 답글

    very nice submit, i definitely love this website, keep on it
  • George 2018/10/01 04:01 # 삭제 답글

    Thanks for the article, is there any way I can receive an email whenever you publish a new update?
  • Michael 2018/10/04 05:50 # 삭제 답글

    I am now not certain the place you're getting your info, however good topic. I needs to spend some time learning more or figuring out more. Thank you for magnificent info I was on the lookout for this information for my mission.
  • John 2018/10/04 23:04 # 삭제 답글

    Wonderful beat ! I would like to apprentice while you amend your website, how could i subscribe for a weblog site? The account aided me a appropriate deal. I were tiny bit familiar of this your broadcast provided shiny transparent concept
  • Thomas 2018/10/06 16:29 # 삭제 답글

    This actually answered my drawback, thank you!
  • Paul 2018/10/08 10:00 # 삭제 답글

    This website is mostly a walkby for all the info you wished about this and didnt know who to ask. Glimpse right here, and also youll undoubtedly uncover it.
  • George 2018/10/10 00:06 # 삭제 답글

    I keep listening to the news update lecture about receiving boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i acquire some?
  • Daniel 2018/10/11 01:29 # 삭제 답글

    Please add more movies related to cooking if you have, because I wish for to learn more and more about all recipes of cooking.
  • Mark 2018/10/12 06:23 # 삭제 답글

    I really like your writing style, good information, thankyou for posting D.
  • James 2018/10/12 12:29 # 삭제 답글

    I'm seeking weblogs which all have fantastic guidance on what's popular and specifically what the top rated makeup is..
  • Donald 2018/10/13 08:41 # 삭제 답글

    Wow, this article is fastidious, my younger sister is analyzing these kinds of things, thus I am going to convey her.
  • Mark 2018/10/14 03:28 # 삭제 답글

    Today, I went to the beach front with my kids.
  • Daniel 2018/10/15 13:55 # 삭제 답글

    I really enjoy the article post. Cool.
  • Daniel 2018/10/16 21:46 # 삭제 답글

    Your goal is to breed all the different dragons
  • Thomas 2018/10/18 04:04 # 삭제 답글

    Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is great, as well as the content!
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶