최근 포토로그


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




핑백

덧글

  • 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.
  • 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
댓글 입력 영역
◀ 다음덧글    이전덧글 ▶