최근 포토로그


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




핑백

덧글

  • Donald 2018/12/21 06:50 # 삭제 답글

    I discovered your blog site on google and test a number of of your early posts. Proceed to keep up the excellent operate. I simply extra up your RSS feed to my MSN Information Reader. Looking for forward to reading extra from you in a while!
  • William 2018/12/22 20:09 # 삭제 답글

    My brother recommended I might like this website. He was totally right. This post truly made my day. You cann't imagine simply how much time I had spent for this info! Thanks!
  • Mark 2018/12/23 11:13 # 삭제 답글

    I have recently started a site, the info you provide on this website has helped me tremendously. Thanks for all of your time &amp work. The achievements of an organization are the results of the combined effort of each individual. by Vince Lombardi.
  • Thomas 2018/12/23 17:24 # 삭제 답글

    Hi! This is my first visit to your blog! We are a
  • George 2018/12/28 08:50 # 삭제 답글

    Perfect webpage you have at this website! Precisely how could i add in this blog's feed into my Rss reader?
  • John 2018/12/28 19:06 # 삭제 답글

    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
  • Paul 2018/12/28 19:32 # 삭제 답글

    Some really quality blog posts on this internet site , saved to fav.
  • John 2019/01/01 15:16 # 삭제 답글

    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.
  • Daniel 2019/01/02 04:32 # 삭제 답글

    That alone wwas an egregious oversight on thheir own part, since
  • Joseph 2019/01/07 06:58 # 삭제 답글

    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!
  • James 2019/01/07 23:34 # 삭제 답글

    Thanks for another magnificent post. Where else may just anybody get that kind of info in such a perfect manner of writing? I have a presentation next week, and I'm at the look for such information.
  • John 2019/01/08 17:41 # 삭제 답글

    Rattling great visual appeal on this web site, I'd value it 10.
  • John 2019/01/10 16:30 # 삭제 답글

    free cell phone number lookup by name You can certainly see your
  • Charles 2019/01/11 13:43 # 삭제 답글

    Thanks for sharing it
  • Daniel 2019/01/11 18:42 # 삭제 답글

    Ive learn some excellent stuff here. Certainly worth bookmarking for revisiting. I wonder how a lot attempt you set to create such a fantastic informative web site.
  • Michael 2019/01/12 05:40 # 삭제 답글

    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 2019/01/14 06:09 # 삭제 답글

    There are some attentiongrabbing points in time in this article but I dont know if I see all of them heart to heart. There may be some validity however I will take maintain opinion until I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as properly
  • Donald 2019/01/18 10:58 # 삭제 답글

    Great blog! I am loving it!! Will come back again. I am taking your feeds also
  • Donald 2019/01/18 19:23 # 삭제 답글

    This actually answered my drawback, thank you!
  • John 2019/01/22 15:27 # 삭제 답글

    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
  • Thomas 2019/01/25 00:51 # 삭제 답글

    Definitely, what a fantastic website and informative posts, I definitely will bookmark your blog.All the Best!
  • Paul 2019/01/26 15:55 # 삭제 답글

    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.
  • Charles 2019/01/28 23:10 # 삭제 답글

    Informative Site Hello guys here are some links that contains information which you might find useful yourselves. It is Worth Checking out.
  • Joseph 2019/01/29 03:49 # 삭제 답글

    Enjoyed studying this, very good stuff, regards . A man may learn wisdom even from a foe. by Aristophanes.
  • Charles 2019/01/30 08:11 # 삭제 답글

    Thank you, I have just been searching for info about this subject for a long time and yours is the greatest I've found out so far. However, what about the bottom line? Are you positive concerning the supply?
  • Thomas 2019/02/03 11:56 # 삭제 답글

    Thanks so much for sharing all with the awesome info! I am looking forward to checking out far more posts!
  • Charles 2019/02/03 20:40 # 삭제 답글

    whoah this weblog is wonderful i really like studying your posts. Keep up the great paintings! You already know, lots of individuals are searching around for this information, you can help them greatly.
  • William 2019/02/03 22:13 # 삭제 답글

    you are in reality a good webmaster. The site loading pace is incredible. It kind of feels that you're doing any unique trick. Moreover, The contents are masterpiece. you have done a great process on this matter!
  • William 2019/02/04 23:09 # 삭제 답글

    It's truly a great and useful piece of information. I'm satisfied that you shared this helpful information with us. Please stay us informed like this. Thank you for sharing.
  • John 2019/02/07 06:29 # 삭제 답글

    I like the helpful information you provide in your articles. Ill bookmark your weblog and check again here regularly. I'm quite certain I will learn plenty of new stuff right here! Good luck for the next!
  • Michael 2019/02/09 07:43 # 삭제 답글

    I am impressed with this website, rattling I am a big fan.
  • William 2019/02/11 20:33 # 삭제 답글

    Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is wonderful, let alone the content!
  • Mark 2019/02/13 04:58 # 삭제 답글

    You completed a number of fine points there. I did a search on the theme and found the majority of folks will agree with your blog.
  • David 2019/02/14 04:25 # 삭제 답글

    What's Happening i'm new to this, I stumbled upon this I have discovered It positively helpful and it has aided me out loads. I hope to contribute &amp help other users like its helped me. Good job.
  • Joseph 2019/02/15 06:50 # 삭제 답글

    I like what you guys are up too. Such smart work and reporting! Keep up the superb works guys I have incorporated you guys to my blogroll. I think it will improve the value of my site
  • James 2019/02/18 17:47 # 삭제 답글

    Hey there! I realize this is somewhat offtopic but I had to ask.
  • Paul 2019/02/19 14:49 # 삭제 답글

    What a video it is! In fact amazing and fastidious quality, please upload more video clips having such good quality. Thanks.
  • Mark 2019/02/21 02:17 # 삭제 답글

    I loved your post.Much thanks again.
  • George 2019/02/24 05:04 # 삭제 답글

    Hey there! 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 results. If you know of any please share. Thank you!
  • Richard 2019/02/24 15:56 # 삭제 답글

    Id forever want to be update on new articles on this internet site, bookmarked ! .
  • Mark 2019/02/26 06:07 # 삭제 답글

    griseofulvin psoriasis
  • Donald 2019/02/26 09:17 # 삭제 답글

    Very interesting topic , appreciate it for posting . The friendship that can cease has never been real. by Saint Jerome.
  • Daniel 2019/02/27 11:23 # 삭제 답글

    I really like your writing style, fantastic information, thanks for putting up
  • Daniel 2019/02/28 22:55 # 삭제 답글

    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!
  • Mark 2019/03/01 22:19 # 삭제 답글

    I do accept as true with all of the concepts you have offered in your post. They're really convincing and will definitely work. Still, the posts are very brief for beginners. May you please extend them a little from next time? Thanks for the post.
  • Richard 2019/03/01 22:21 # 삭제 답글

    whoah this weblog is wonderful i love studying your posts. Stay up the great work! You know, many individuals are searching round for this info, you can aid them greatly.
  • Robert 2019/03/02 08:59 # 삭제 답글

    Excellent post. I was checking continuously this blog and I'm impressed! Very useful info particularly the last part
  • Paul 2019/03/04 22:08 # 삭제 답글

    This is a great blog, would you be involved in doing an interview about how you created it? If so email me!
  • Thomas 2019/03/05 01:38 # 삭제 답글

    Enjoyed examining this, very good stuff, thankyou . While thou livest keep a good tongue in thy head. by William Shakespeare.
  • James 2019/03/06 02:11 # 삭제 답글

    Thanks for the post.Really looking forward to read more. Will read on
  • Mark 2019/03/07 15:33 # 삭제 답글

    This really is actually fascinating, That you are a quite specialist blogger. Ive joined your rss feed and sit up for looking for more of your excellent post. Also, I have shared your web site in my social networks!
  • Daniel 2019/03/14 09:29 # 삭제 답글

    reverse phone lookup free results I am no longer positive
  • Daniel 2019/03/14 20:29 # 삭제 답글

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

    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!
  • William 2019/03/15 22:40 # 삭제 답글

    Appreciate it for helping out, great information.
  • William 2019/03/16 18:30 # 삭제 답글

    Hi there! Someone in my Myspace group shared this site with us so I came to give it a appear. Im definitely loving the details. Im bookmarking and will likely be tweeting this to my followers! Outstanding blog and great style and style.
  • Mark 2019/03/17 14:21 # 삭제 답글

    I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thx again!
  • John 2019/03/18 04:44 # 삭제 답글

    I'm extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one nowadays..
  • David 2019/03/18 13:55 # 삭제 답글

    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!
  • Charles 2019/03/18 18:47 # 삭제 답글

    Im thankful for the post. Great.
  • Donald 2019/03/18 19:52 # 삭제 답글

    I need to input, like a bunch at the same time as I hadn't the benefit of examining everything you had to declare, I couldnt rally round on the contrary elude draw your attention before long. The as if you needed an excellent grasp on the subject
  • Donald 2019/03/23 14:15 # 삭제 답글

    It'll also save a lot of cash and time for those on a restricted budget who
  • James 2019/03/24 17:50 # 삭제 답글

    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!
  • Charles 2019/03/26 09:24 # 삭제 답글

    Because here is a list of multiplayer games
  • David 2019/03/27 10:47 # 삭제 답글

    Howdy would you mind sharing which blog platform you're working
  • Richard 2019/03/27 15:50 # 삭제 답글

    Heya im for the first time the following. I discovered this specific table as a consequence I to discover The item faithfully of use &amp the idea rallied round myself publicized lots. I am hoping to deliver a little back again furthermore foster further like so
  • Joseph 2019/04/03 07:49 # 삭제 답글

    A megapolis megabucks gratuit failed to seem to cause waste materials in addition
  • Robert 2019/04/06 06:50 # 삭제 답글

    As soon as I detected this site I went on reddit to share some of the love with them.
  • Charles 2019/04/06 18:10 # 삭제 답글

    Hello, Neat post. There's a problem with your web site in web explorer, may test thisK IE still is the market leader and a large component to people will leave out your magnificent writing due to this problem.
  • Paul 2019/04/08 20:19 # 삭제 답글

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

    Howdy would you mind sharing which blog platform you're working
  • Mark 2019/04/14 23:29 # 삭제 답글

    Thank you for some other informative website. Where else may just I am getting that kind of info written in such an ideal means? I've a venture that I am just now working on, and I have been on the glance out for such info.
  • Mark 2019/04/16 04:40 # 삭제 답글

    Somebody necessarily lend a hand to make significantly posts I might state. This is the very first time I frequented your website page and thus far? I surprised with the analysis you made to make this actual publish incredible. Magnificent job!
  • Michael 2019/04/16 07:39 # 삭제 답글

    This event occurred rigt after the time Mario return to the Mushroom Kingdom so it had to take place after
  • Paul 2019/04/17 20:29 # 삭제 답글

    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?
  • Daniel 2019/04/18 12:09 # 삭제 답글

    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.
  • Richard 2019/04/21 09:01 # 삭제 답글

    I am no longer sure the place you're getting your info, but great topic. I needs to spend a while studying much more or understanding more. Thanks for wonderful info I was on the lookout for this info for my mission.
  • David 2019/04/23 04:00 # 삭제 답글

    I really enjoy the blog article.Really looking forward to read more. Fantastic.
  • Mark 2019/04/23 05:42 # 삭제 답글

    insecticide permethrin side effects in cats
  • Mark 2019/04/27 06:43 # 삭제 답글

    I really enjoy the blog article.Really looking forward to read more. Fantastic.
  • David 2019/04/28 21:33 # 삭제 답글

    Thanks for sharing it
  • William 2019/04/30 01:06 # 삭제 답글

    I really enjoy reading on this website, it holds great articles. Don't put too fine a point to your wit for fear it should get blunted. by Miguel de Cervantes.
  • Thomas 2019/04/30 08:18 # 삭제 답글

    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.
  • Joseph 2019/04/30 15:12 # 삭제 답글

    It's very straightforward to find out any topic on net as compared to textbooks, as I found this article at this site.
  • John 2019/05/02 14:25 # 삭제 답글

    Sweet website, super layout, very clean and utilise genial.
  • John 2019/05/04 04:24 # 삭제 답글

    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
  • Charles 2019/05/04 15:11 # 삭제 답글

    When some one searches for his necessary thing, so heshe desires to be available that in detail, thus that thing is maintained over here.
  • George 2019/05/05 05:39 # 삭제 답글

    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
  • Mark 2019/05/06 07:27 # 삭제 답글

    It'll also save a lot of cash and time for those on
  • Michael 2019/05/07 04:01 # 삭제 답글

    Hahahahahahaha, this politics related YouTube video is really so comical, I loved it. Thanks in favor of sharing this.
  • Robert 2019/05/08 17:44 # 삭제 답글

    Nice post. I study one thing more difficult on completely different blogs everyday.
  • Richard 2019/05/09 20:05 # 삭제 답글

    Appreciate it for helping out, great information.
  • Daniel 2019/05/10 17:16 # 삭제 답글

    I truly appreciate this post. I've been looking everywhere for this! Thank goodness I found it on Bing. You've made my day! Thank you again!
  • Thomas 2019/05/11 04:28 # 삭제 답글

    I appreciate, cause I found just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye
  • Daniel 2019/05/13 16:36 # 삭제 답글

    Because here is a list of multiplayer games
  • Charles 2019/05/15 23:39 # 삭제 답글

    I know this if off topic but I'm looking into starting my own blog and was curious what all is required to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very web savvy so I'm not 100 positive. Any recommendations or advice would be greatly appreciated. Thanks
  • Paul 2019/05/16 15:53 # 삭제 답글

    Hi, Neat post. There is a problem with your web site in internet explorer, would check this IE still is the market leader and a large portion of people will miss your magnificent writing because of this problem.
  • William 2019/05/17 20:38 # 삭제 답글

    Maintain the excellent job mate. This web blog publish shows how well you comprehend and know this subject.
  • Richard 2019/05/18 11:48 # 삭제 답글

    Hi there. Merely desired to question an instant dilemma.
  • Paul 2019/05/18 18:47 # 삭제 답글

    what are some really good and popular websites for blogging? ?? .
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶