@ -3,13 +3,19 @@ import TypeWidget from "./type_widget.js";
const TPL = `
< div class = "note-detail-render note-detail-printable" >
< div class = "note-detail-render-help alert alert-warning" >
< style >
. note - detail - render {
height : 100 % ;
}
< / s t y l e >
< div class = "note-detail-render-help alert alert-warning" style = "margin: 50px; padding: 20px;" >
< p > < strong > This help note is shown because this note of type Render HTML doesn ' t have required relation to function properly . < / s t r o n g > < / p >
< p > Render HTML note type is used for < a href = "https://github.com/zadam/trilium/wiki/Scripts" > scripting < / a > . I n s h o r t , y o u h a v e a H T M L c o d e n o t e ( o p t i o n a l l y w i t h s o m e J a v a S c r i p t ) a n d t h i s n o t e w i l l r e n d e r i t . T o m a k e i t w o r k , y o u n e e d t o d e f i n e a r e l a t i o n ( i n < a c l a s s = " s h o w - a t t r i b u t e s - b u t t o n " > A t t r i b u t e s d i a l o g < / a > ) c a l l e d " r e n d e r N o t e " p o i n t i n g t o t h e H T M L n o t e t o r e n d e r . O n c e t h a t ' s d e f i n e d y o u c a n c l i c k o n t h e " p l a y " b u t t o n t o r e n d e r . < / p >
< / d i v >
< div class = "note-detail-render-content" > < / d i v >
< div class = "note-detail-render-content" style = "height: 100%; overflow: auto;" > < / d i v >
< / d i v > ` ;
export default class RenderTypeWidget extends TypeWidget {