Hello Jim,
thanks for the assembly, great stuff, works nicely.
Is there any "central" repository where you and Mario contribute? I have
some ideas, but don't know where to start now..
* for instance, to avoid the necessity of editing of the EditTemplate, I've
created a simple hijack, which could be inside the plugin, actually:
/* Hijack edit macro:
* add the content-type chooser before the editor
* add the "content-type" attribute to the container of the editor's
textarea and the class="CodeMirror" element
*/
cm_orig_editHandler = config.macros.edit.handler;
config.macros.edit.handler =
function(place,macroName,params,wikifier,paramString,tiddler) {
var toHijack = params[0] == "text" && !tiddler.isReadOnly(), // only
for "text", not other fields
e, contentType;
if(toHijack)
createTiddlyElement(place,"div",null,'toolbar',null,{macro:
'typeChooser'});
e =
cm_orig_editHandler(place,macroName,params,wikifier,paramString,tiddler);
contentType = tiddler.fields['content-type'];
if(toHijack && e.parentNode && contentType)
e.parentNode.setAttribute('content-type',contentType);
return e;
};
(though, the cm_orig_editHandler variable should be substituted with
something in a globally accessible "namespace")
** typeChooser may also be made a toolbar command instead of a macro, but
I'd like to minify the necessity to *change* system tiddlers for
* or, say, I'd like to add folding to some text/x-tiddlywiki parts -- like
//{{{
...
//}}}
* or, where to report bugs? I reported some to Mario in the previous
thread, but some of them got fixed with the CodeMirror 3.x, yet some may
remain/some new can arise. I don't have much time for thorouth testing for
the moment, but it would be nice to understand the perspective and where to
look for the most recent version.
Best regards,
Yakov.
среда, 18 декабря 2013 г., 18:35:31 UTC+4 пользователь Jim написал:
>
> Gosh – found a bug in IE8. Here’s the fix…
>
>
>
>
>
> Jim
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.