>
> The easiest way of doing all this would be using the way the codemirror 
engine does it (have a look at tiddlywiki.com/prerelease and look at 
$:/plugins/tiddlywiki/codemirror/edit-codemirror.js)

* clone the edit-codemirror.js tiddler, make it export edit-sftype (for 
example)
* it will be used when you have a editor type mapping 
($:/config/EditorTypeMappings/application/sftype) that contains sftype (in 
its text field ... if you export edit-sftype ... if you export 
edit-myengine, put myengine inside) ... that will automatically call the 
edit-sftype widget (or the edit-myengine widget), when editing a tiddler 
with type application/sftype
* then the basic handling is done by factory.js
* and you create your engine javascript tiddler with the title you defined 
above (your clone of edit-codemirror.js)
* for the content of your engine you can use 
$:/core/modules/editor/engines/simple.js as the easiest template to build 
on top , and you can have a look at the codemirror engine how it 
incorporates the codemirror library (probably too complicated for your case)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7b910a8f-413b-46f3-bd06-8875520578a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to