mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-28 12:29:56 +00:00
9547a1f01c
A bunch of little changes that together enable external image support. Try: ``` tiddlywiki editions/tw5.com --verbose --build externalimages ``` Then open `externalimages.html`, look for the images in the more/types tab of the sidebar, open them and verify that they are set with an external SRC attribute, not a data URI.
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
title: $:/core/ui/EditTemplate/body
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/Body/
|
|
<$list filter="[is[current]has[_canonical_uri]]">
|
|
|
|
<div class="tw-message-box">
|
|
|
|
<<lingo External/Hint>>
|
|
|
|
<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>
|
|
|
|
<$edit-text field="_canonical_uri" class="tw-edit-fields"></$edit-text>
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[is[current]!has[_canonical_uri]]">
|
|
|
|
<$reveal state="$:/state/showeditpreview" type="match" text="yes">
|
|
|
|
<em class="tw-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="no"><<lingo Preview/Button/Hide>></$button>
|
|
|
|
<div class="tw-tiddler-preview">
|
|
<div class="tw-tiddler-preview-preview">
|
|
|
|
<$transclude />
|
|
|
|
</div>
|
|
|
|
<div class="tw-tiddler-preview-edit">
|
|
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes">
|
|
|
|
<em class="tw-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="yes"><<lingo Preview/Button/Show>></$button>
|
|
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|