Hi,

I played with your MTC and found the following:

1) A 'normal' font (I tried Comic Sans MS so it was easy to see) works for 
editing 
2) An embedded font (your Zing font) does not work for editing (as you 
already found)
2a) but when you switch off the editor toolbar, it works!

This means that an embedded font gives problems when combined with the 
editor with editor toolbar (note that in that case the editor is an 
iframe!).

The style for the editor is given in $:/themes/tiddlywiki/vanilla/base

.tc-tiddler-frame input.tc-edit-texteditor,
.tc-tiddler-frame textarea.tc-edit-texteditor,
.tc-tiddler-frame iframe.tc-edit-texteditor {
    padding: 3px 3px 3px 3px;
    border: 1px solid <<colour tiddler-editor-border>>;
    background-color: <<colour tiddler-editor-background>>;
    line-height: 1.3em;
    -webkit-appearance: none;
    font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
}

The rendered version of $:/themes/tiddlywiki/vanilla/base shows your Zing 
font as font-family.
Prefixing these styles with html or html-body didn't help.

To be honest I do not have an explanation why it does not work with the 
iframe editor.
Maybe someone else can help you.

If you can live without the editor toolbar, it works as expected.
In that case (and for testing) you can use my Editor toolbar checkbox + 
preview button. Drag & drop the attached json file to your wiki.

Cheers,

Ton


-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/14b04784-c07b-42aa-967d-f48ac0bdd4dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: $___toggle-editor-toolbar_preview.json
Description: application/json

Reply via email to