Skip to content

Commit 29e1e29

Browse files
committed
Intermediate stage
- use path for selected node - filter before activation of title editor - deactivate test dialog - improve comments - tool tips for command buttons (class bt)
1 parent e636773 commit 29e1e29

10 files changed

Lines changed: 264 additions & 194 deletions

File tree

src/assets/dialog.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ <h3>Katex Input Helper</h3>
5757
<span class='rtl-menu-item' locate="OPEN_EQUATION"></span>
5858
</div>
5959
<input type="file" id="fOPEN_EQUATION" style="display: none" />
60-
<div class="menu-sep"></div>
61-
<div iconcls="icon-refresh" id="mUPDATE_EQUATION">
62-
<span class='rtl-menu-item' locate="UPDATE_EQUATION"></span>
63-
</div>
64-
<div iconcls="icon-set" id="mSET_EQUATION">
65-
<span class='rtl-menu-item' locate="SET_EQUATION"></span>
66-
</div>
6760
</div>
6861
<div id="mINSERT" class="easyui-menu menus">
6962
<div iconcls="icon-char" id="mCHARS">
@@ -217,8 +210,8 @@ <h3>Katex Input Helper</h3>
217210
<div id="innerLayout" data-options="fit:true" class="easyui-layout">
218211

219212
<div id="HTML_TAG" class="north easyui-panel" data-options="region:'north',split:false,noheader:true" disabled="true">
220-
<a href="#" title="Latex" class="easyui-linkbutton easyui-tooltip" id="btHTML_Latex"><strong>$</strong></a>
221-
<a href="#" title="AsciiMath" class="easyui-linkbutton easyui-tooltip" id="btHTML_AsciiMath"><strong>`</strong></a> |
213+
<a href="#" title="Latex" class="easyui-linkbutton easyui-tooltip" id="btHTML_Latex" disabled="true"><strong>$</strong></a>
214+
<a href="#" title="AsciiMath" class="easyui-linkbutton easyui-tooltip" id="btHTML_AsciiMath" disabled="true"><strong>`</strong></a> |
222215
<a href="#" title="span color" class="easyui-linkbutton easyui-tooltip" iconcls="icon-text_color" id="btHTML_TEXTCOLOR"></a>
223216
<a href="#" title="span background-color" class="easyui-linkbutton easyui-tooltip" iconcls="icon-fore_color" id="btHTML_FORECOLOR"></a> |
224217
<a href="#" title="h1" class="easyui-linkbutton easyui-tooltip" iconcls="icon-text_heading_1" id="btHTML_H1"></a>

src/assets/information/tBUGS.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
<div dir=ltr>
33
<p>
4-
Thanks to send me all bugs to <a href="mailto:juergen@habelt-jena.de?subject=Katex%20Input%20Helper%20Bug" target=_blank class=bt>Jürgen Habelt</a>.
4+
This is the Katex Input Helper port of the software. Bugs are listed as issues on Github (See below).
55
</p>
66
<p>
7-
This is the Katex Input Helper port of the software. Appropriate bugs will be added soon.
7+
Thanks to send me all bugs to <a href="mailto:juergen@habelt-jena.de?subject=Katex%20Input%20Helper%20Bug" target=_blank class="bt easyui-linkbutton">Jürgen Habelt</a>.
8+
Alternatively you can create an <a href="https://github.com/Mick2nd/Katex-Input-Helper/issues" target=_blank class=bt>Issue on Github</a>.
89
</p>
910
<hr/>
1011
<p>

src/assets/js/categoriesTree.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,15 @@ class CategoriesTree {
619619
}
620620
}
621621

622+
/**
623+
* @abstract Given a node in the tree, determines and returns the path string.
624+
*
625+
* This serves the purpose to provide a better way to characterize the current
626+
* selection.
627+
*
628+
* @param node - a node of the tree
629+
* @returns the path string belonging to that node
630+
*/
622631
pathFromNode(node) {
623632
let current = node;
624633
let path = '';
@@ -631,6 +640,12 @@ class CategoriesTree {
631640
return path;
632641
}
633642

643+
/**
644+
* @abstract Given the path string, determines and returns the appropriate node.
645+
*
646+
* @param {string} path - the path of a node in the tree
647+
* @returns the node belonging to that path or null
648+
*/
634649
nodeFromPath(path) {
635650

636651
let pathComponents = path.split('/').slice(1);

src/assets/js/dialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ h3 {
346346
}
347347

348348
.panel-body table tbody tr td a.easyui-tooltip {
349-
float: left;
349+
float: bottom;
350350
}
351351

352352
.katex {

0 commit comments

Comments
 (0)