최근 포토로그


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




핑백

덧글

  • 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? ?? .
  • Thomas 2019/05/20 02:07 # 삭제 답글

    certainly like your website however you have to check the spelling on several of your posts. Many of them are rife with spelling problems and I to find it very troublesome to inform the truth nevertheless I will surely come back again.
  • James 2019/05/20 12:46 # 삭제 답글

    Hi, Neat post. There's a problem with your site in internet explorer, would test this IE still is the market leader and a good portion of people will miss your excellent writing because of this problem.
  • Charles 2019/05/21 12:06 # 삭제 답글

    Some really quality blog posts on this internet site , saved to fav.
  • Thomas 2019/05/22 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.
  • William 2019/05/23 02:12 # 삭제 답글

    Several of these games are worth some time and are actually
  • Robert 2019/05/25 16:34 # 삭제 답글

    Link exchange is nothing else but it is simply placing the other persons web site link on your page at proper place and other person will also do same for you.
  • Joseph 2019/05/26 17:01 # 삭제 답글

    Hello there! This post could not be written any better! Reading this post reminds me of my good old room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Thank you for sharing!
  • Paul 2019/05/26 21:38 # 삭제 답글

    I appreciate, cause I discovered just what I used to be looking for. You have ended my four day long hunt! God Bless you man. Have a nice day. Bye
  • Donald 2019/05/28 09:55 # 삭제 답글

    That is some inspirational stuff. Never knew that opinions could be this varied. Be certain to keep writing.
  • Mark 2019/05/28 15:09 # 삭제 답글

    A megapolis megabucks gratuit failed to seem to cause waste materials in addition
  • Donald 2019/05/30 19:53 # 삭제 답글

    Hello! Do you use Twitter? I'd like to follow you if that would be okay. I'm undoubtedly enjoying your blog and look forward to new posts.
  • John 2019/05/31 07:17 # 삭제 답글

    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.
  • Donald 2019/05/31 22:02 # 삭제 답글

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

    Android Game Development takes more than knowledge
  • John 2019/06/01 13:51 # 삭제 답글

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

    I went over this site and I conceive you have a lot of wonderful information, bookmarked .
  • Richard 2019/06/04 14:07 # 삭제 답글

    Nice blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog stand out. Please let me know where you got your design. Bless you
  • Robert 2019/06/05 16:29 # 삭제 답글

    Maintain the excellent job mate. This web blog publish shows how well you comprehend and know this subject.
  • Joseph 2019/06/06 02:59 # 삭제 답글

    Maintain the excellent job mate. This web blog publish shows how well you comprehend and know this subject.
  • Daniel 2019/06/06 21:34 # 삭제 답글

    is elocon a steroid cream
  • Daniel 2019/06/07 23:18 # 삭제 답글

    Where To Buy Cheap Generic Cefuroxime 250mg in Baltimore
  • Daniel 2019/06/09 15:30 # 삭제 답글

    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!
  • William 2019/06/11 15:23 # 삭제 답글

    It's perfect time to make some plans for the long run and it is time to be happy. I have learn this publish and if I may I want to suggest you few attentiongrabbing things or advice. Maybe you could write next articles regarding this article. I desire to read even more things about it!
  • Charles 2019/06/11 19:06 # 삭제 답글

    Hi, Neat post. There is an issue together with your site in internet explorer, may test this IE nonetheless is the marketplace leader and a huge part of folks will leave out your magnificent writing because of this problem.
  • Richard 2019/06/12 14:11 # 삭제 답글

    Perfect webpage you have at this website! Precisely how could i add in this blog's feed into my Rss reader?
  • Mark 2019/06/14 05:13 # 삭제 답글

    Your style is really unique compared to other folks I've read stuff from.
  • Joseph 2019/06/15 13:34 # 삭제 답글

    Howdy. Simply just planned to ask a quick problem. Now i'm
  • William 2019/06/28 23:02 # 삭제 답글

    Hello! Do you use Twitter? I'd like to follow you if that would be okay. I'm undoubtedly enjoying your blog and look forward to new posts.
  • Mark 2019/06/29 15:23 # 삭제 답글

    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
  • John 2019/07/04 03:17 # 삭제 답글

    Specifically where web can a certified psyciatrist submit content or sites for them to become fashionable?
  • Paul 2019/07/04 22:53 # 삭제 답글

    Great, thanks for sharing this article. Really Cool.
  • George 2019/07/05 04:32 # 삭제 답글

    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 nice day. Bye
  • Paul 2019/07/07 17:51 # 삭제 답글

    Android Game Development takes more than knowledge
  • Michael 2019/07/08 01:40 # 삭제 답글

    You are my inspiration , I have few web logs and very sporadically run out from to brand.
  • Joseph 2019/07/09 07:34 # 삭제 답글

    tretinoin chemotherapy
  • William 2019/07/12 19:56 # 삭제 답글

    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!
  • Thomas 2019/07/14 12:14 # 삭제 답글

    Android Game Development takes more than knowledge
  • William 2019/07/15 03:15 # 삭제 답글

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

    requirements. Recognitions pro suggestion like operative, balanced, explanatory as well as moreover exuberance thinkings about this issue to Gloria.
  • James 2019/07/16 10:06 # 삭제 답글

    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.
  • Paul 2019/07/16 13:20 # 삭제 답글

    Hello there, i am interested
  • Robert 2019/07/18 23:21 # 삭제 답글

    Keep working ,fantastic job!
  • Daniel 2019/07/19 06:11 # 삭제 답글

    betamethasone acetatena phos
  • George 2019/07/20 00:01 # 삭제 답글

    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
  • Thomas 2019/07/20 04:40 # 삭제 답글

    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.
  • Donald 2019/07/20 06:17 # 삭제 답글

    Pretty great post. I just stumbled upon your blog and wanted
  • Joseph 2019/07/21 09:03 # 삭제 답글

    I think this is a real great blog post.Much thanks again.
  • Joseph 2019/07/22 13:15 # 삭제 답글

    Perfect webpage you have at this website! Precisely how could i add in this blog's feed into my Rss reader?
  • 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.
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶