modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

WYSIWYG Friendly Snippet Parameters #5037

Open modxbot opened 13 years ago

modxbot commented 13 years ago

everettg_99 created Redmine issue ID 5037

This is one that dates back to Evo, and it may already be on record, but one of the most frustrating things about using a WYSIWYG editor inside of MODx (e.g. TinyMCE) is that the MODx Snippet syntax is destroyed: the ampers-ands in particular are destroyed as soon as the editor is toggled.

It appears that at least now the Parser doesn't trip over the & to & conversion (???), but it might be better still if the Snippet parameters used a symbol that didn't get converted to an HTML entity, e.g. "$", as in:

[[Wayfinder? $startId=`123`]]

Personally, I think the dollar sign is a good candidate because it reminds one that the parameters end up as PHP variables, but there are surely numerous other candidates (*, #, ^, :, ;, -, _). It might even be possible to omit a glyph altogether, e.g.

[[Wayfinder? startId=`123`]]

Sorry if this is a double-post.

wshawn commented 13 years ago

wshawn submitted:

Parameters should remain consistent to industry standards. The Editor needs to allow white-listing so as to not touch anything located within the double brackets. Personally, I refuse to use any of those editors on a site, and clients that do are working only in areas where this is not an issue - namely the Resources.