최근 포토로그


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;
}




핑백

덧글

  • William 2019/07/22 16:38 # 삭제 답글

    I got what you intend, appreciate it for posting .Woh I am lucky to find this website through google. I was walking down the street wearing glasses when the prescription ran out. by Steven Wright.
  • Paul 2019/07/25 19:49 # 삭제 답글

    I'm not sure exactly why but this weblog is loading very slow for me. Is anyone else having this problem or is it a problem on my end? I'll check back later and see if the problem still exists.
  • James 2019/07/27 17:23 # 삭제 답글

    Hey, thanks for the post.Really thank you! Really Cool.
  • Robert 2019/07/27 17:27 # 삭제 답글

    you're truly a just right webmaster. The site loading speed is incredible. It kind of feels that you are doing any distinctive trick. In addition, The contents are masterpiece. you've performed a magnificent task in this subject!
  • William 2019/07/28 07:50 # 삭제 답글

    Where To Buy Cheap Generic Cefuroxime 250mg in Baltimore
  • Joseph 2019/07/28 08:54 # 삭제 답글

    I simply couldn't depart your web site prior to suggesting that I actually loved the usual info a person supply for your guests? Is gonna be again continuously in order to check up on new posts.
  • Mark 2019/07/28 12:35 # 삭제 답글

    Appreciating the time and energy you put into your blog and in depth information you provide. It's good to come across a blog every once in a while that isn't the same unwanted rehashed information. Excellent read! I've saved your site and I'm adding your RSS feeds to my Google account.
  • Joseph 2019/07/30 17:49 # 삭제 답글

    I really like your writing style, great info, thank you for putting up
  • John 2019/07/31 21:25 # 삭제 답글

    you are in point of fact a just right webmaster. The site loading velocity is amazing. It sort of feels that you are doing any distinctive trick. Furthermore, The contents are masterpiece. you've performed a magnificent process in this subject!
  • David 2019/07/31 21:27 # 삭제 답글

    This kind of game gives a real experience of building a farm and planting trees.
  • Joseph 2019/08/03 18:35 # 삭제 답글

    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!
  • George 2019/08/04 02:40 # 삭제 답글

    I just couldn't go away your web site before suggesting that I really enjoyed the usual information an individual provide on your visitors? Is gonna be again continuously in order to check up on new posts
  • Thomas 2019/08/06 07:18 # 삭제 답글

    Specifically where web can a certified psyciatrist submit content or sites for them to become fashionable?
  • Joseph 2019/08/07 05:30 # 삭제 답글

    An fascinating dialogue is value comment. I believe that it is best to write more on this matter, it might not be a taboo topic but generally individuals are not sufficient to talk on such topics. To the next. Cheers
  • Michael 2019/08/07 12:25 # 삭제 답글

    Heya im for the first time here. I discovered this board and I to uncover It truly helpful &amp it helped me out a whole lot. I hope to supply something back and aid other people such as you helped me.
  • Michael 2019/08/07 14:14 # 삭제 답글

    Your goal is to breed all the different dragons available
  • William 2019/08/07 21:53 # 삭제 답글

    Thanks for any other informative web site. Where else may just I get that kind of information written in such an ideal way? I have a mission that I am just now operating on, and I have been on the look out for such information.
  • William 2019/08/08 02:50 # 삭제 답글

    I'm glad that it turned out so effectively and I hope it will continue in the future because it is so worthwhile and meaningful to the community.
  • Paul 2019/08/09 21:21 # 삭제 답글

    Howdy just wanted to give you a quick heads up. The words in your article seem to be running off the screen in Ie.
  • Paul 2019/08/10 04:58 # 삭제 답글

    Thanks for this article. I'd also like to express that it can often be hard if you are in school and simply starting out to initiate a long credit standing. There are many students who are just trying to endure and have an extended or favourable credit history are often a difficult matter to have.
  • George 2019/08/11 23:28 # 삭제 답글

    you are in point of fact a just right webmaster. The site loading velocity is amazing. It sort of feels that you are doing any distinctive trick. Furthermore, The contents are masterpiece. you've performed a magnificent process in this subject!
  • Daniel 2019/08/14 11:54 # 삭제 답글

    I think you have remarked some very interesting points , appreciate it for the post.
  • Charles 2019/08/14 13:03 # 삭제 답글

    That is some inspirational stuff. Never knew that opinions could be this varied. Be certain to keep writing.
  • David 2019/08/14 14:34 # 삭제 답글

    This actually answered my drawback, thank you!
  • Joseph 2019/08/16 15:22 # 삭제 답글

    Low cost Gucci Handbags Is generally blogengine much much better than wp for reasons unknown? Should be which is turning out to be popluar today.
  • James 2019/08/16 16:34 # 삭제 답글

    Good web site! I really love how it is easy on my eyes and the data are well written. I am wondering how I might be notified whenever a new post has been made. I've subscribed to your RSS which must do the trick! Have a great day!
  • Charles 2019/08/18 09:46 # 삭제 답글

    I usually do not drop a comment, but I read a few
  • Donald 2019/08/18 21:51 # 삭제 답글

    Have you ever considered about including
  • Michael 2019/08/18 23:44 # 삭제 답글

    Hey very cool blog!! Guy.. Beautiful.. Wonderful.. I will bookmark your website and take the feeds additionallyKI am satisfied to search out numerous useful information right here in the publish, we want develop more techniques on this regard, thank you for sharing
  • Michael 2019/08/20 03:21 # 삭제 답글

    Valuable information. Fortunate me I discovered your web site by chance, and I am surprised why this coincidence didn't happened in advance! I bookmarked it.
  • John 2019/08/20 14:16 # 삭제 답글

    This design is wicked! You obviously know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog well, almostHaHa! Wonderful job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!
  • James 2019/08/22 09:28 # 삭제 답글

    Hey very cool blog!! Guy.. Beautiful.. Wonderful.. I will bookmark your website and take the feeds additionallyKI am satisfied to search out numerous useful information right here in the publish, we want develop more techniques on this regard, thank you for sharing
  • Daniel 2019/08/22 18:19 # 삭제 답글

    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?
  • Robert 2019/08/24 05:27 # 삭제 답글

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?
  • George 2019/08/24 16:17 # 삭제 답글

    I have to agree with your statement with this issue and
  • Mark 2019/08/25 22:45 # 삭제 답글

    I dugg some of you post as I cogitated they were very useful extremely helpful
  • John 2019/08/27 18:06 # 삭제 답글

    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.
  • Paul 2019/08/27 20:53 # 삭제 답글

    You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I'll try to get the hang of it!
  • George 2019/08/29 15:16 # 삭제 답글

    Wow! This blog looks exactly like my old one! It's on a completely different topic but it has pretty much the same page layout and design. Excellent choice of colors!
  • George 2019/08/30 01:14 # 삭제 답글

    Great article post.Really thank you! Fantastic.
  • Paul 2019/08/30 13:53 # 삭제 답글

    I'm trying to find sites that have already fantastic useful information on what's popular and what is the optimum makeup products is..
  • Daniel 2019/08/30 13:59 # 삭제 답글

    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?
  • Charles 2019/09/01 02:16 # 삭제 답글

    Aw, this was a very nice post. In thought I want to put in writing like this moreover taking time and actual effort to make an excellent article but what can I say I procrastinate alot and not at all seem to get something done.
  • Mark 2019/09/05 13:24 # 삭제 답글

    Some really nice and useful information on this web site, also I conceive the style and design holds superb features.
  • Joseph 2019/09/05 13:34 # 삭제 답글

    Hi there! I could have sworn I've been to this blog before but after checking through some of the post I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be bookmarking and checking back frequently!
  • James 2019/09/06 13:09 # 삭제 답글

    Do you have a spam problem on this site I also am
  • William 2019/09/12 06:43 # 삭제 답글

    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!
  • George 2019/09/14 00:26 # 삭제 답글

    Thanks for sharing it
  • Joseph 2019/09/14 21:22 # 삭제 답글

    You have brought up a very good details , thankyou for the post.
  • George 2019/09/15 02:43 # 삭제 답글

    very nice submit, i definitely love this website, keep on it
  • Michael 2019/09/17 07:20 # 삭제 답글

    I conceive you have remarked some very interesting points , regards for the post.
  • George 2019/09/18 02:00 # 삭제 답글

    Great blog! I am loving it!! Will come back again. I am taking your feeds also
  • William 2019/09/22 02:04 # 삭제 답글

    I don't usually comment but I gotta admit thanks for the post on this great one
  • Richard 2019/09/23 23:28 # 삭제 답글

    I'm hunting for web sites that contain fantastic recommendations on what's in fashion and just what top rated makeup products is..
  • John 2019/09/26 00:05 # 삭제 답글

    Hi, everything is going well here and ofcourse every one is sharing information, that's really fine, keep up writing.
  • Donald 2019/09/26 18:53 # 삭제 답글

    I'm trying to find sites that have already fantastic useful information on what's popular and what is the optimum makeup products is..
  • Robert 2019/09/30 21:17 # 삭제 답글

    Someone essentially help to make significantly posts I might state. This is the first time I frequented your web page and so far? I surprised with the research you made to create this actual submit amazing. Magnificent activity!
  • James 2019/10/02 04:18 # 삭제 답글

    You are my breathing in, I possess few blogs and very sporadically run out from to brand.
  • Daniel 2019/10/07 05:08 # 삭제 답글

    Aw, this was a very nice post. In thought I want to put in writing like this moreover taking time and actual effort to make an excellent article but what can I say I procrastinate alot and not at all seem to get something done.
  • James 2019/10/10 19:42 # 삭제 답글

    Appreciating the time and energy you put into your blog and in depth information you provide. It's good to come across a blog every once in a while that isn't the same unwanted rehashed information. Excellent read! I've saved your site and I'm adding your RSS feeds to my Google account.
  • David 2019/10/12 13:10 # 삭제 답글

    This kind of game gives a real experience of building a farm and planting
  • Charles 2019/10/12 17:24 # 삭제 답글

    Fantastic website. A lot of useful information here. I'm sending it to a few pals ans also sharing in delicious. And naturally, thank you in your sweat!
  • Richard 2019/10/13 08:32 # 삭제 답글

    Every weekend i used to pay a visit this website, for the reason that i wish for enjoyment, for the reason
  • William 2019/10/16 08:21 # 삭제 답글

    Farmville coins are used to make experience points and to purchae things for tthe farm.
  • James 2019/10/16 16:42 # 삭제 답글

    My brother recommended I may like this website. He used to be totally right. This post truly made my day. You can not consider simply how so much time I had spent for this info! Thanks!
  • Robert 2019/10/17 21:37 # 삭제 답글

    I have learn some good stuff here. Certainly price bookmarking for revisiting.
  • Donald 2019/10/18 08:59 # 삭제 답글

    reverse phone lookup free results I am no longer positive
  • Daniel 2019/10/19 10:10 # 삭제 답글

    Excellent post. I was checking continuously this blog and I'm impressed! Very useful info particularly the last part
  • David 2019/10/20 09:12 # 삭제 답글

    I conceive this website has got some rattling superb info for everyone. Dealing with network executives is like being nibbled to death by ducks. by Eric Sevareid.
  • George 2019/10/21 18:32 # 삭제 답글

    I really enjoy the blog article.Really looking forward to read more. Fantastic.
  • Robert 2019/10/22 03:26 # 삭제 답글

    A megapolis megabucks gratuit failed to seem to cause waste materials in addition
  • Joseph 2019/10/24 19:27 # 삭제 답글

    I discovered your blog web site website on the search engines and check several of your early posts. Always sustain up the very excellent operate. I lately additional increase Rss to my MSN News Reader. Looking for toward reading much far more on your part later on!
  • Richard 2019/10/26 04:18 # 삭제 답글

    is elocon a steroid cream
  • Paul 2019/10/26 20:38 # 삭제 답글

    I'm pleased that I seen this website, precisely the proper information that I was trying to find!
  • Charles 2019/10/27 06:52 # 삭제 답글

    Ultimately, a dilemma that I'm passionate about. I have looked for data of this caliber for the previous various hours. Your internet site is greatly appreciated.
  • William 2019/10/28 01:19 # 삭제 답글

    A megapolis megabucks gratuit failed to seem to cause waste materials in addition
  • William 2019/10/29 09:31 # 삭제 답글

    What sites and blogs perform searching district interact most on?
  • William 2019/10/29 17:53 # 삭제 답글

    A big thank you for your article.Thanks Again. Great.
  • Charles 2019/10/30 01:48 # 삭제 답글

    Enjoyed examining this, very good stuff, thankyou. Talk sense to a fool and he calls you foolish. by Euripides.
  • Paul 2019/10/31 03:39 # 삭제 답글

    This is why Facebook games are becoming more popular. The ease of use and dissemination of content, tagging
  • Robert 2019/11/02 16:59 # 삭제 답글

    Excellently written writeup, doubts all bloggers offered the same content material because you, the internet is actually a greater location. Please maintain it up!
  • Michael 2019/11/03 03:55 # 삭제 답글

    Where To Purchase AkChlor 250mg Without A Script
  • David 2019/11/04 02:26 # 삭제 답글

    Awesome article post.Thanks Again. Much obliged.
  • John 2019/11/04 13:35 # 삭제 답글

    Great, thanks for sharing this blog.Really thank you!
  • Thomas 2019/11/05 02:32 # 삭제 답글

    Heya i am for the first time here. I found this board and I find It really useful &amp it helped me out much. I hope to give something back and aid others like you helped me.
  • Donald 2019/11/05 05:24 # 삭제 답글

    Hey very nice blog!! Man .. Beautiful .. Amazing .. I'll bookmark your website and take the feeds alsoI am happy to find a lot of useful info here in the post, we need work out more techniques in this regard, thanks for sharing. . . . . .
  • Mark 2019/11/08 09:55 # 삭제 답글

    I'm pleased that I seen this website, precisely the proper information that I was trying to find!
  • Mark 2019/11/09 03:16 # 삭제 답글

    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!
  • Joseph 2019/11/09 22:31 # 삭제 답글

    Hello.This post was extremely motivating, especially because I was browsing for thoughts on this subject last Thursday.
  • Thomas 2019/11/10 18:53 # 삭제 답글

    Very well written article. It will be helpful to anyone who usess it, as well as yours truly
  • James 2019/11/11 12:35 # 삭제 답글

    I have learn some good stuff here. Certainly price bookmarking for revisiting.
  • Charles 2019/11/12 16:58 # 삭제 답글

    I do believe all of the ideas you've offered for your post. They are really convincing and will definitely work. Still, the posts are very quick for newbies. May just you please extend them a little from next time? Thank you for the post.
  • James 2019/11/13 15:54 # 삭제 답글

    Sweet website, super layout, very clean and utilise genial.
  • Michael 2019/11/15 18:39 # 삭제 답글

    This actually answered my drawback, thank you!
  • John 2019/11/16 00:05 # 삭제 답글

    What's up Jackson, if you are a new internet user then you have to visit daily this web site and read the updated content at at this place.
  • William 2019/11/16 21:30 # 삭제 답글

    tretinoin chemotherapy
  • Joseph 2019/11/18 11:31 # 삭제 답글

    Outstanding post, I conceive people should acquire a lot from this web blog its rattling user genial. So much superb info on here
  • Mark 2019/11/18 21:17 # 삭제 답글

    1 Program you'r planting of crops to coincide whenever you can log onto your farm to reap them.
  • Mark 2019/11/19 14:57 # 삭제 답글

    Definitely pent subject material, be thankful in support of picky facts .
  • Paul 2019/11/20 12:06 # 삭제 답글

    Several of these games are worth some time and are actually
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶