# HG changeset patch # User Zoe Hong # Date 1462196823 -7200 # Node ID 8a97db7b910889413fda55f5266ae404d1f6978d # Parent c3e149277b5827a0db1bf24fde1eb5a0e6570f17 bug fixed: edit text diff -r c3e149277b58 -r 8a97db7b9108 js/taggingtext.js --- a/js/taggingtext.js Mon May 02 14:21:41 2016 +0200 +++ b/js/taggingtext.js Mon May 02 15:47:03 2016 +0200 @@ -210,7 +210,7 @@ function editText() { var el = document.getElementById("editable-area"); - if ( $("#editTextId").html() == "Edit the text" ) { + if ( $("#editTextId").html() == "Edit text" ) { // --- in editing mode --- saveUndoText(); el.contentEditable = true; @@ -232,7 +232,7 @@ $("button").attr("disabled", false); $("#popups").css("display","block"); // open the popup windows $("input").attr('disabled', false); // enable input - $("#editTextId").html("Edit the text"); + $("#editTextId").html("Edit text"); } } @@ -1358,7 +1358,7 @@ document.getElementById("button-area").innerHTML= "
\
Edit: \ -
\ +
\ \
\
Replace By Regex: \ diff -r c3e149277b58 -r 8a97db7b9108 views/Extractapp/TaggingText.php --- a/views/Extractapp/TaggingText.php Mon May 02 14:21:41 2016 +0200 +++ b/views/Extractapp/TaggingText.php Mon May 02 15:47:03 2016 +0200 @@ -173,7 +173,7 @@ $(document).on("click", taglistValue[2], function (e, taglistValue) { - if ($("#editTextId").html() != "Edit the text") return 0; + if ($("#editTextId").html() != "Edit text") return 0; var tag = $(this).prop("tagName").toLowerCase(); //if (tagName != taglistValue[2]) return 0; @@ -194,7 +194,7 @@ foreach ( $taglistArray as $taglistValue ) { echo '$(document).on("click", "'.$taglistValue[2].'", function (e) {'."\n"; echo "\t".'if ( $(this).prop("tagName").toLowerCase() != "'.$taglistValue[2].'" ) return 0;'."\n"; - echo "\t".'if ( $("#editTextId").html() != "Edit the text" ) return 0;'."\n"; + echo "\t".'if ( $("#editTextId").html() != "Edit text" ) return 0;'."\n"; echo "\tremoveTagNewDiv( e, \"".$taglistValue[2]."\", $(this) );\n"; echo "});\n"; } @@ -282,7 +282,7 @@ $('.questionMarkClass').remove(); $('.tagItemDivClass').remove(); - if ( $("#editTextId").html() != "Edit the text" ) return 0; + if ( $("#editTextId").html() != "Edit text" ) return 0; //var selection = getSelected(); selection = getSelected(); // selection is a global variable @@ -1514,8 +1514,7 @@
- - + Page: to @@ -1539,8 +1538,8 @@

- Tag only for this range:
- to
+ Tag only for this range:
+ to