');
- ptln('');
+ ptln('');
ptln($this->getLang('add_macros') .' ');
- ptln('');
+ ptln('');
ptln($this->getLang('delete_macros') .' ');
- ptln('');
+ ptln('');
ptln($this->getLang('edit_macros') .' ');
ptln('');
diff --git a/plugin.info.txt b/plugin.info.txt
index ae031d0..9717c5b 100644
--- a/plugin.info.txt
+++ b/plugin.info.txt
@@ -1,7 +1,7 @@
base textinsert
author Myron Turner
email turnermm02@shaw.ca
-date 2019-10-03
+date 2019-10-18
name textinsert Plugin
desc replace macros with text subsitutions
url https://www.dokuwiki.org/plugin:textinsert
diff --git a/script.js b/script.js
new file mode 100755
index 0000000..3748460
--- /dev/null
+++ b/script.js
@@ -0,0 +1,43 @@
+
+ var ti_replace_divs = new Array('macro_add','macro_del','macro_edit','ti_info','macro_list');
+ /**
+ * Edit onChange handler
+ * @param el input element which has been changed
+ * @desc if an encode hidden input already exists, its value
+ * is re-encoded from the text input's value
+ * If not, a new encoded hidden input is created with the encoded
+ * value. The encode input value is used to substitute the new edit values
+ * in the php edit() function
+ */
+ function ti_replace_encode (el) {
+ var matches = el.name.match(/\[(.*)\]/);
+ if(matches[1]) {
+ var name = 'encoded['+matches[1]+']';
+ var val = el.value;
+ val = val.replace(/>/g,">");
+ val = val.replace(/