{"id":558,"date":"2010-08-22T07:43:54","date_gmt":"2010-08-22T07:43:54","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=558"},"modified":"2010-08-22T07:49:17","modified_gmt":"2010-08-22T07:49:17","slug":"configuring-the-fckeditor","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/","title":{"rendered":"Configuring the fckeditor HTML editor"},"content":{"rendered":"<p>The fckeditor is described on the web site <a title=\"fck editor\" href=\"http:\/\/www.fckeditor.net\/\" target=\"_blank\">http:\/\/www.fckeditor.net<\/a> and is a configurable html text editor with many add ons and plugins.<\/p>\n<p>The configuration file in the fckconfig.js file is set to use the english language &#8216;en&#8217; with a toolbar set called &#8216;pg_toolbar&#8217;.  The FCKEditor web site provides full desciption on its options and configuration.<\/p>\n<p>The fckeditor has the ability to upload images and files with a file manager system.  This is disabled by default.<\/p>\n<p>To set up the upload facility in fckeditor.<\/p>\n<p>(A)<\/p>\n<p>In the file \\fckeditor\\editor\\filemanager\\browser\\default\\connectors\\php\\config.php<\/p>\n<p>change &#8216;false&#8217; to &#8216;true&#8217; to allow uploads.<\/p>\n<p>The relevant line in config.php file :<br \/>\n\/\/ SECURITY: You must explicitly enable this &#8220;connector&#8221;. (Set it to &#8220;true&#8221;).<br \/>\n$Config[&#8216;Enabled&#8217;] = false ;<\/p>\n<p>(B)<\/p>\n<p>Create a folder on the server where you want the files to be located and identify<br \/>\nthe folder in \\fckeditor\\editor\\filemanager\\browser\\default\\connectors\\php\\config.php<\/p>\n<p>Then change the permissions on that folder to 777.<\/p>\n<p>The relevant line in config.php file :<br \/>\n\/\/ Path to user files relative to the document root.<br \/>\n$Config[&#8216;UserFilesPath&#8217;] = &#8216;\/UserFiles\/&#8217;;<\/p>\n<p>the document root being the root of the web server.<\/p>\n<p>Another area of customisation that you may want to implement is  defining the toolbar that appears above the text box which is used to  enter product descriptions.  The toolbar has been trimmed to  make it more manageable and to remove tools that are not required all  that often. However, you may want to add back in some buttons which is  very easy to do.<\/p>\n<p>Open up the file \/fckeditor\/fckeditor.js with a suitable text editor.<\/p>\n<p>The toolbar that we use is called FCKConfig.ToolbarSets[&#8220;pg_toolbar&#8221;].<\/p>\n<p>The default toolbar is FCKConfig.ToolbarSets[&#8220;Default&#8221;].<\/p>\n<p>If you want to add a button from the default toolbar, just copy it and place it into FCKConfig.ToolbarSets[&#8220;pg_toolbar&#8221;].<\/p>\n<p>Or if you want all the buttons, rename  FCKConfig.ToolbarSets[&#8220;Default&#8221;] to FCKConfig.ToolbarSets[&#8220;pg_toolbar&#8221;]  and remove the old FCKConfig.ToolbarSets[&#8220;pg_toolbar&#8221;].<\/p>\n<p>Note that the very last button on the toolbar is used to maximise the  editor window which can help if you are doing more detailed work with  the html.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The fckeditor is described on the web site http:\/\/www.fckeditor.net and is a configurable html text editor with many add ons and plugins. The configuration file in the fckconfig.js file is set to use the english language &#8216;en&#8217; with a toolbar<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/\">Read more <span class=\"screen-reader-text\">Configuring the fckeditor HTML editor<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","hentry","category-php-eseller","category-php-securearea"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configuring the fckeditor HTML editor - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring the fckeditor HTML editor - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"The fckeditor is described on the web site http:\/\/www.fckeditor.net and is a configurable html text editor with many add ons and plugins. The configuration file in the fckconfig.js file is set to use the english language &#8216;en&#8217; with a toolbar&hellip;Read more Configuring the fckeditor HTML editor &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2010-08-22T07:43:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-08-22T07:49:17+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Configuring the fckeditor HTML editor\",\"datePublished\":\"2010-08-22T07:43:54+00:00\",\"dateModified\":\"2010-08-22T07:49:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/\"},\"wordCount\":369,\"commentCount\":0,\"articleSection\":[\"PHP-eSeller\",\"PHP-SecureArea\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/\",\"name\":\"Configuring the fckeditor HTML editor - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2010-08-22T07:43:54+00:00\",\"dateModified\":\"2010-08-22T07:49:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/configuring-the-fckeditor\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring the fckeditor HTML editor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring the fckeditor HTML editor - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/","og_locale":"en_US","og_type":"article","og_title":"Configuring the fckeditor HTML editor - PHP Web Applications","og_description":"The fckeditor is described on the web site http:\/\/www.fckeditor.net and is a configurable html text editor with many add ons and plugins. The configuration file in the fckconfig.js file is set to use the english language &#8216;en&#8217; with a toolbar&hellip;Read more Configuring the fckeditor HTML editor &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/","og_site_name":"PHP Web Applications","article_published_time":"2010-08-22T07:43:54+00:00","article_modified_time":"2010-08-22T07:49:17+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Configuring the fckeditor HTML editor","datePublished":"2010-08-22T07:43:54+00:00","dateModified":"2010-08-22T07:49:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/"},"wordCount":369,"commentCount":0,"articleSection":["PHP-eSeller","PHP-SecureArea"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/","url":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/","name":"Configuring the fckeditor HTML editor - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2010-08-22T07:43:54+00:00","dateModified":"2010-08-22T07:49:17+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/configuring-the-fckeditor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Configuring the fckeditor HTML editor"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":4,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/558\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}