|
Users Developers Wiki help. |
Experimental Rich-text editingWARNING: 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 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 See trac:214 |