Recent Changes - Search:

Users

Developers

Wiki help.

Experimental Rich-text editing

WARNING: This addon will corrupt your data!

Do not use it with live data

If you'd like to test rich-text editing in gtd-php, and assist in development, download jwysiwyg and install it.

jwysiwyg is MIT/GPL dual-licensed.

It's quite dysfunctional at the moment! trimTaggedString in gtdfuncs.inc.php needs tweaking:

$permittedTags=array(
	 '/^<a ((href)|(file))=[^>]+>/i'=>'</a>'
	,'/^<b>/i'=>'</b>'
	,'/^<span [^>]*>/i'=>'</span>'
	,'/^<big>/i'=>'</big>'
	,'/^<small>/i'=>'</small>'
	,'/^<h1>/i'=>'</h1>'
	,'/^<h2>/i'=>'</h2>'
	,'/^<h3>/i'=>'</h3>'
	,'/^<i>/i'=>'</i>'
	,'/^<ul>/i'=>'</ul>'
	,'/^<ol>/i'=>'</ol>'
	,'/^<li>/i'=>'</li>'
	);

but this causes a big performance hit.

And there are other problems. jwysiwyg doesn't seem to recognise line breaks <br> when they're passed to it, so they get lost!

I haven't worked out how exactly to add and remove elements from the toolbar yet, though it all appears to be going on in the declaration of TOOLBAR at line 151 of jquery.wysiwyg.js

See trac:214

Edit - History - Print - Recent Changes - Search
Page last modified on October 14, 2008, at 01:51 AM