TinyMCE CF GZip – now officially part of tinyMCE

I am very pleased to announce that my ColdFusion based compressor for TinyMCE has been adopted by Moxiecode’s for their official CF compressor.

Coldfusion Gzip Compressor 2.1.0 released

This version of the Coldfusion Gzip compressor is a complete rewrite that doesn’t require any jar file to be installed in the lib directory. The previous versions was basically written in Java and the cfm file only called the logic in this Java file. This was a major problem when the compressor was to be used on shared hosting servers since users can’t install these .jar files by themselves.

The rewrite of this compressor was done by Jules Gravinese. He will be the new maintainer for the Coldfusion compressor. So this release is also an introduction to a new team member.

We are trying to move TinyMCE from being a tightly maintained Moxiecode project to more of a community project. We recently added a new team page to the site that lists the members that are the core part of the TinyMCE community.

This is great news for shared hosting. Now you can run TinyMCE, compressed, without installing a jar file.

Many thanks to Artur Kordowski for his gzip work in Zip CFC.

You can look forward to tweaks and improvements over time!

gitPush 1.1 – added error trapping

I added some error trapping to gitPush.app

The output of git is sent to a temporary file in the repo’s root. This way Applescript it not listening for it. Once the sh is done, I read the file. If it’s blank the app exists quietly. Otherwise the contents of the file are displayed.

read the log file for errors
set theResult to do shell script “cd “” & thePath & “/”; cat gitPushOutput.temp”
if theResult is not “” then
    tell application “gitPush”
        activate
    end tell
    display dialog “There was an error. git said… 

” & theResult buttons {“Quit”} default button 1 with icon 2
end if

 


git Error dialog
git Error dialog

Now, the toolbar icon does not get stuck in chromo-mode upon error.

Get the update: http://github.com/WebVeteran/gitpush/

gitPush 1.0 – a github Finder toolbar button

I started to use git and github, and really like it. Except for one thing, no all-in-one GUI for the Mac. There is GitX and it does just about everything except push your committed changes to git hub. So to fill that gap I made a small Mac Application Bundle from an Applescript that fires off the git command. Here’s a screen shot:

 

gitPush 1.0
gitPush 1.0

It works by you dragging the app to the Finder toolbar. See it there on the right?

After committing your changes in GitX (or command line… ick) just navigate to the root of your local repo and click the octocat button in the toolbar. The icon becomes chromatic, the committed files get uploaded, the icon goes monochrome. Done.

Hurry, they’re going fast! http://github.com/WebVeteran/gitpush/

Donate

The projects I work on and release as freeware / open source are developed on a ‘free time’ basis. That is, maybe 30~60 minutes a night, well after the rest of my family is asleep. Please consider making these projects worth my time with a small token of appreciation. I’d love to continue coding open source. Therefore

if:
you find any of my projects…
• Well written, documented, and commented
• Easy to install and use
• Optimized within reason
• Work as advertised
• Have saved you hours of work
then:

I promise to use the funds for something worthwhile. At the time being, that is feeding my growing family =)

TinyMCE CF GZIP 1.0

TinyMCE CF GZIP is a ColdFusion based Javascript Concatenater, Compressor, and Cacher for TinyMCE.

This file compresses the TinyMCE JavaScript using GZip and enables the browser to do two requests instead of one for each .js file. From nearly 100 requests to 2, about 400KB to 80.

It is also a single file install. The current official TinyMCE ColdFusion Compressor requires a JAR file installed. But this one does not! Just drop the CF in, modify the TinyMCE js to use this file, and you’re done!

 

TinyMCE CF GZIP
TinyMCE CF GZIP

Live demo

Later today the source will either be on sourceforge or github. Stay tuned!

Visual Code Editor with WP-Codebox

This is a test using the Visual Code Editor plugin with the WP-CodeBox plugin.

Original code:

	<Tr>
		<td style="background-color:##598CB5;color:white;font-weight:bold;">
			#l1title#
		</td>
		<td rowspan=16>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td style="background-color:##598CB5;color:white;font-weight:bold;">
			#r1title#
		</td>
	</tr>
<!--- ORDER --->
<cfhttpparam name="x_invoice_num"         type="formfield" value="#invoice_num#" >
<cfhttpparam name="x_description"         type="formfield" value="ScenicMesa.com online order">
<cfloop list="#x_line_items#" delimiters="#chr(9)#" index="i">
	<cfhttpparam name="x_line_item"       type="formfield" value="#i#">
</cfloop>

And here is WP-CodeBox enabled:

Rendering of WP-Codebox
Rendering of WP-Codebox - I took this screen capture just before turning deactivating the plugin.

Visual Code Edior allows for syntax and code editing right in WordPress’ invocation of TinyMCE. Therefore, all html entitied are escaped. As you can see this sometimes does not work with WP-CodeBox since it expects non-escaped code. This is why WP-CodeBox made it on my “Plugins that failed to help” list.

Now for SyntaxHighlighter Plus, which, on the other hand expects escaped code. And so it works well when editing code in visual mode of the WordPress post editor:

	<Tr>
		<td style="background-color:##598CB5;color:white;font-weight:bold;">
			#l1title#
		</td>
		<td rowspan=16>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td style="background-color:##598CB5;color:white;font-weight:bold;">
			#r1title#
		</td>
	</tr><!--- ORDER --->
<cfhttpparam name="x_invoice_num"         type="formfield" value="#invoice_num#" >
<cfhttpparam name="x_description"         type="formfield" value="ScenicMesa.com online order">
<cfloop list="#x_line_items#" delimiters="#chr(9)#" index="i">
	<cfhttpparam name="x_line_item"       type="formfield" value="#i#">
</cfloop>