<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tequila Fish &#187; FCKeditor</title>
	<atom:link href="http://www.tequilafish.com/category/tech/fckeditor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FCKEditor: Remove &amp; prevent &lt;p&gt; tags from wrapping your content.</title>
		<link>http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/</link>
		<comments>http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 19:54:02 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FCKeditor]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=139</guid>
		<description><![CDATA[For some reason, FCKEditor automatically wraps any content entered into the textbox with a &#60;p&#62; tag. This can cause for some problems in your layout when you're actually displaying the content. Instead of trying to fix this in your layout with CSS, there is a quick and easy way to turn the auto-wrap off in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2008%2F09%2F12%2Ffckeditor-remove-p-tags-from-wrapping-your-content%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2008%2F09%2F12%2Ffckeditor-remove-p-tags-from-wrapping-your-content%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>For some reason, <a href="http://www.fckeditor.net/">FCKEditor</a> automatically wraps any content entered into the textbox with a &lt;p&gt; tag.  This can cause for some problems in your layout when you're actually displaying the content.  Instead of trying to fix this in your layout with CSS, there is a quick and easy way to turn the auto-wrap off in FCKEditor: Change the <strong><tt>FCKConfig.EnterMode</tt></strong> setting from <strong>'p'</strong> to <strong>'br'</strong>.  There are a few ways to handle this:</p>
<ul>
<li>Edit <tt>fckconfig.js</tt>:<br />Change <strong><tt>FCKConfig.EnterMode = 'p';</tt></strong> to <strong><tt>FCKConfig.EnterMode = 'br';</tt></strong></li>
<li>Change the setting programatically when you instantiate the object, like so (in PHP):<br />
<code>&lt;?php<br />
		include_once('fckeditor/fckeditor.php');<br />
		$oFCKeditor = new FCKeditor('description');<br />
		$oFCKeditor->BasePath = '/fckeditor/';<br />
		$oFCKeditor->Value = 'some text';<br />
		<strong>$oFCKeditor->Config['EnterMode'] = 'br'; // turn off auto &lt;p&gt; tags wrapping content</strong><br />
		$oFCKeditor->Create();<br />
		?&gt;</code></li>
</ul>
<p>I prefer the latter way because you can do it on a page by page basis, and there's no messing with FCK's core JavaScript files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FCKeditor Error: this.DOMDocument has no properties</title>
		<link>http://www.tequilafish.com/2006/12/07/fckeditor-error-thisdomdocument-has-no-properties/</link>
		<comments>http://www.tequilafish.com/2006/12/07/fckeditor-error-thisdomdocument-has-no-properties/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 02:29:01 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FCKeditor]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2006/12/07/fckeditor-error-thisdomdocument-has-no-properties/</guid>
		<description><![CDATA[In my prior post I ran into a problem with FCKeditor on Apache having to do with serving JavaScript files as the proper MIME type. I ran into a similar problem with XML files when trying to load multiple instances of FCK textareas: Error: this.DOMDocument has no properties Source File: http://www.mysite.com/FCKeditor/editor/js/fckeditorcode_gecko.js Line: 43 This is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F12%2F07%2Ffckeditor-error-thisdomdocument-has-no-properties%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F12%2F07%2Ffckeditor-error-thisdomdocument-has-no-properties%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In my prior post I ran into a problem with FCKeditor on Apache having to do with serving JavaScript files as the proper MIME type.  I ran into a similar problem with XML files when trying to load multiple instances of FCK textareas:<br />
<code>Error: this.DOMDocument has no properties<br />
Source File: http://www.mysite.com/FCKeditor/editor/js/fckeditorcode_gecko.js<br />
Line: 43</code><br />
This is easily fixed in the same way, by telling Apache how to properly serve XML files.  Put this in your <tt>httpd.conf</tt> or an <tt>.htaccess</tt> file:<br />
<code>AddType text/xml .xml</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2006/12/07/fckeditor-error-thisdomdocument-has-no-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKeditor in Firefox &#8211; Illegal Character JavaScript error</title>
		<link>http://www.tequilafish.com/2006/12/07/fckeditor-in-firefox-illegal-character-javascript-error/</link>
		<comments>http://www.tequilafish.com/2006/12/07/fckeditor-in-firefox-illegal-character-javascript-error/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 01:38:28 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FCKeditor]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2006/12/07/fckeditor-in-firefox-illegal-character-javascript-error/</guid>
		<description><![CDATA[For some reason, FCKeditor would not load in Firefox 2.0 even though it loaded in IE just fine. Turns out Apache was serving up the javascript files as the wrong FileType, so Firefox would choke on some jibberish characters: Error: illegal character Source File: http://www.myserver.com/FCKeditor/editor/js/fckeditorcode_gecko.js Line: 1, Column: 1 Source Code: Ã¯Â»Â¿/* The fix is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F12%2F07%2Ffckeditor-in-firefox-illegal-character-javascript-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F12%2F07%2Ffckeditor-in-firefox-illegal-character-javascript-error%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>For some reason, FCKeditor would not load in Firefox 2.0 even though it loaded in IE just fine.  Turns out Apache was serving up the javascript files as the wrong FileType, so Firefox would choke on some jibberish characters:<br />
<code>Error: illegal character<br />
Source File: http://www.myserver.com/FCKeditor/editor/js/fckeditorcode_gecko.js<br />
Line: 1, Column: 1<br />
Source Code: Ã¯Â»Â¿/*</code><br />
The fix is easy enough, simply add an <tt>.htaccess</tt> file to your dir containing the following:<br />
<code>AddType application/x-javascript .js</code><br />
Now FCKeditor should work fine in Firefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2006/12/07/fckeditor-in-firefox-illegal-character-javascript-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
