{"id":27708,"date":"2017-01-23T03:01:49","date_gmt":"2017-01-22T17:01:49","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=27708"},"modified":"2017-04-28T19:04:57","modified_gmt":"2017-04-28T09:04:57","slug":"do-it-yourself-html-textarea-editor-cursor-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/do-it-yourself-html-textarea-editor-cursor-tutorial\/","title":{"rendered":"Do It Yourself HTML Textarea Editor Cursor Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Do It Yourself HTML Textarea Editor Cursor Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_cursor.JPG\" title=\"Do It Yourself Textarea Editor Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Do It Yourself HTML Textarea Editor Cursor Tutorial<\/p><\/div>\n<p>If you do lots of text editing perhaps you take the <a target=_blank href='https:\/\/en.m.wikipedia.org\/wiki\/Cursor' title='Cursor information from Wikipedia'>&#8220;cursor&#8221;<\/a> for granted.  But just as the stylus on a vinyl record makes the music in relation to its position, the equivalent of our text editing &#8220;cursor&#8221; is that it defines where to place the next typed character.  It&#8217;s been around, as a concept, and survived, more to the point, for a long time now, as it has been around regarding much database SQL query design too.   But today, for us, we are giving it some attention, because we want to &#8230;<\/p>\n<ul>\n<li>read off the HTML textarea &#8220;editor&#8221; element&#8217;s data its cursor position &#8230; and also &#8230;<\/li>\n<li>set the cursor position of the HTML textarea &#8220;editor&#8221; element after modifying its contents<\/li>\n<\/ul>\n<p>That ability means that we now have the ability to offer the user of this HTML textarea &#8220;editor&#8221; the chance to use &#8220;helper&#8221; (like shortcut) HTML (select element) &#8220;dropdown&#8221; options to optionally speed up the creation of the HTML code.  We realise this &#8220;flies in the face&#8221; of a basic belief we have that it is good to hand code your HTML to learn it better, but the real fact is that the quicker your success, the more you&#8217;ll want to try out other HTML ideas, and that makes these ideas worthwhile.  These HTML drop downs are structured to mandatorily have the &#8230;<\/p>\n<ul>\n<li>HTML element type &#8230; as for &lt;p&gt;&lt;\/p&gt; &#8230; mandatory &#8230; and optional, for properties like &#8230;<\/li>\n<li>id<\/li>\n<li>class<\/li>\n<li>title<\/li>\n<li>style<\/li>\n<li>src<\/li>\n<li>href<\/li>\n<li>value<\/li>\n<\/ul>\n<p> &#8230; as well as several other property combinations, presented in combination with the HTML type whether that is apt, or not.    Now, we may fix this perhaps, but we also see that it can serve a purpose to teach the HTML with trial and error thoughts as well.  We see &#8220;trial and error&#8221; as an incredibly important idea here.  Hand coding HTML by trial and error, sometimes, particularly in combination with a web browser Web Inspector product, are a potent mix to finding out how the client side of web applications work.  Pretty obviously, looking at books and search engine information, as a conduit to websites like <a target=_blank title='W3schools' href='http:\/\/w3schools.com'>W3schools<\/a> helps a lot too.<\/p>\n<p>Below are the two main functions new to the logic to get a cursor position &#8230;<\/p>\n<p><code><br \/>\nfunction wherearewe(ota) {  \/\/ thanks to http:\/\/stackoverflow.com\/questions\/2897155\/get-cursor-position-in-characters-within-a-text-input-field<br \/>\n\/\/ Initialize<br \/>\n  var ipos = 0;<br \/>\n  if (document.selection) {  \/\/ IE Support<br \/>\n    \/\/ Set focus on the element<br \/>\n    ota.focus();<br \/>\n    \/\/ To get cursor position, get empty selection range<br \/>\n    var oselis = document.selection.createRange();<br \/>\n    \/\/ Move selection start to 0 position<br \/>\n    oselis.moveStart('character', -ota.value.length);<br \/>\n    \/\/ The caret position is selection length<br \/>\n    ipos = oselis.text.length;<br \/>\n  } else if (ota.selectionStart || ota.selectionStart == '0') { \/\/ Firefox support<br \/>\n    ipos = ota.selectionStart;<br \/>\n  }<br \/>\n  \/\/ Return results<br \/>\n  \/\/alert(ipos);<br \/>\n  return ipos;<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; and then to set a cursor position &#8230;<\/p>\n<p><code><br \/>\nfunction setwherearewe(ota, wota) {  \/\/ thanks to http:\/\/stackoverflow.com\/questions\/2897155\/get-cursor-position-in-characters-within-a-text-input-field<br \/>\n  if (ota.setSelectionRange) {<br \/>\n      ota.setSelectionRange(wota, wota);<br \/>\n  } else if (ota.createTextRange) {<br \/>\n      var range = ota.createTextRange();<br \/>\n      range.collapse(true);<br \/>\n      range.moveEnd('character', wota);<br \/>\n      range.moveStart('character', wota);<br \/>\n      range.select();<br \/>\n  }<br \/>\n  \/\/ Return cursor position<br \/>\n  ota.focus();<br \/>\n  \/\/document.title=ota.value.length + ' vs ' + wota;<br \/>\n  return wota;<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; you can see with the HTML and Javascript you could call <a target=_blank title='do_away_with_the_boring_bits.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/examine  the HTML and Javascript could be called <a target=_blank title='do_away_with_the_boring_bits.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html-GETME'>do_away_with_the_boring_bits.html<\/a> and which changed from yesterday for shortcut key functionality in <a target=_blank title='Changes' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html-GETME'>this way<\/a>.  Please feel free to try it out yourself at a <a target=_blank title='do_away_with_the_boring_bits.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html'>live run<\/a> link.<\/p>\n<hr>\n<p id='diyhpt'>Previous relevant <a target=_blank title='Do It Yourself HTML Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/do-it-yourself-html-primer-tutorial\/'>Do It Yourself HTML Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Do It Yourself HTML Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.JPG\" title=\"Do It Yourself Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Do It Yourself HTML Primer Tutorial<\/p><\/div>\n<p>It is because of yesterday&#8217;s generic <a target=_blank title='Google search of HTTP cookies' href='https:\/\/www.google.com.au\/search?q=HTTP+cookies&#038;rlz=1C1AOHY_enAU717AU717&#038;oq=HTTP+cookies&#038;aqs=chrome..69i57j0l5.2997j0j4&#038;sourceid=chrome&#038;ie=UTF-8'>HTTP Cookie<\/a>  thoughts we had when we presented <a title='Job Search Grid Game Cookie Tutorial' href='#jsggct'>Job Search Grid Game Cookie Tutorial<\/a>, as shown below, that makes us feel okay using &#8220;Do It Yourself&#8221; in the blog posting title &#8220;Do It Yourself HTML Primer Tutorial&#8221;.  Without the use of cookies what we do today is probably not worth the bother because we &#8230;<\/p>\n<ul>\n<li>want to get you programming in HTML and Javascript and CSS, if you are curious, and have never done it before, and want to taste that incredible feeling programmers get when they &#8220;see something working&#8221; &#8230; so &#8230;<\/li>\n<li>we get you to draft up some HTML and Javascript and CSS in an HTML textarea element &#8230; <font size=1>and we&#8217;ll talk more about the limitations here later on<\/font> &#8230; <\/li>\n<li>click or tap the &#8220;Try your HTML and Javascript and CSS Above&#8221; button &#8230; then &#8230;<\/li>\n<ol>\n<li>see the results of your work to the right in a light blue area &#8230; and &#8230;<\/li>\n<li>notice up the top middle a new (and\/or updated) HTML (select element) dropdown with some datetime flagged previous &#8220;HTML Edit&#8221; sessions you can recall &#8230; that&#8217;s HTTP Cookie functionality at work<\/li>\n<\/ol>\n<\/ul>\n<p>The thing is about hand coded HTML, and we think you learn more by hand coding your HTML, at least in the early days, you are going to need a few goes at things to get things going, and yet, like most programmers, you&#8217;ll be curious to know &#8220;does it work yet<font size=1>?<\/font>&#8221; (<font size=1>sound familiar to &#8220;are we there yet?&#8221; to you?<\/font>), so remember those &#8220;worthwhile coming back to&#8221; datetime stamps, is our advice &#8230; <font size=1>gratuitous, as always?!<\/font><\/p>\n<p>Now about those restrictions to use.  Alas, within the web page &#8220;head&#8221; section &#8230; between &lt;head&gt; and &lt;\/head&gt; &#8230; the &#8230;<\/p>\n<ul>\n<li>good news is that all the CSS styling &#8230; between &lt;style&gt; and &lt;\/style&gt; &#8230; seems to be fine, but, alas, the &#8230;<\/li>\n<li>bad news is that the Javascript scripting &#8230;  between &lt;script type=&#8217;text\/javascript&#8217;&gt; and &lt;\/script&gt; &#8230; does not work, as of this first draft &#8230; not with code between &lt;script type=&#8217;text\/javascript&#8217;&gt; and &lt;\/script&gt; between &lt;body&gt; and &lt;\/body&gt; &#8230; but event logic defined within &lt;body&gt; and &lt;\/body&gt; such as <i>onclick=<\/i> works (but no &#8220;body onload please&#8221;, nor &#8220;body anything else&#8221; either &#8230; just plain straight &#8220;body&#8221; please)<\/li>\n<\/ul>\n<p>Be that as it may, you can still see a lot happening with this arrangement, and be like us, perhaps, still in wonder at that feeling of &#8220;look at that, it works!&#8221;.<\/p>\n<p>So, that&#8217;s the go, and you can try it out via this <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html\" title=\"Click picture\">live run<\/a> link and\/or peruse the code behind this (just HTML and CSS and Javascript) &#8220;Do It Yourself HTML Editor&#8221; you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/do_away_with_the_boring_bits.html_GETME\" title=\"do_away_with_the_boring_bits.html\">do_away_with_the_boring_bits.html<\/a> <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=t8iTZm8-mbA'>yourself<\/a>.<\/p>\n<hr>\n<p id='jsggct'>Previous relevant <a target=_blank title='Job Search Grid Game Cookie Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/job-search-grid-game-cookie-tutorial\/'>Job Search Grid Game Cookie Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Job Search Grid Game Cookie Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game_cookies.JPG\" title=\"Job Search Grid Game Cookie Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Job Search Grid Game Cookie Tutorial<\/p><\/div>\n<p>Yesterday we got to a point with a web project we were working on called the &#8220;Job Search Grid Game&#8221; (and thanks here to <a target=_blank title='Science Puzzles for Young Einsteins by Helene Hovanec ISBN 0-8069-3542-1' href='https:\/\/books.google.com.au\/books?isbn=0806958499'>Science Puzzles for Young Einsteins<\/a> by Helene Hovanec ISBN 0-8069-3542-1 for the inspiration) and we ended up with a game that could use <a target=_blank title='Content Management System information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Content_management_system'>Content Management System<\/a> ideas whereby the user could control the content of the game.  Guess you might categorize this functionality as &#8220;personalization&#8221;.<\/p>\n<p>That &#8220;personalization&#8221; only lasted as long as that web browser session lasted, and there was no recourse to recall any of that user &#8220;personalized&#8221; game data settings again, but today we&#8217;ve started, by using this project as the &#8220;guinea pig&#8221; project to start down the road of seeing whether the use of <a target=_blank title='Google search of HTTP cookies' href='https:\/\/www.google.com.au\/search?q=HTTP+cookies&#038;rlz=1C1AOHY_enAU717AU717&#038;oq=HTTP+cookies&#038;aqs=chrome..69i57j0l5.2997j0j4&#038;sourceid=chrome&#038;ie=UTF-8'>HTTP cookies<\/a> might assist to extend functionality for &#8230; <\/p>\n<ul>\n<li>only users who tailor their game via that &#8220;Management&#8221; link down the bottom of the game &#8230; and who &#8230;<\/li>\n<li>use this <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.htm\">new live run<\/a> link (rather than the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html\">old live run<\/a> link) &#8230; because there are checks to see that &#8230;<\/li>\n<li>functionality occurs if the calling HTML has code such as &lt;div id=dcookies_okay&gt;&lt;input type=hidden id=cookies_okay value=&#8221;&gt;&lt;\/input&gt;&lt;\/div&gt;<\/li>\n<\/ul>\n<p>We&#8217;ve tried thoughts that are quite &#8220;generic&#8221; by nature here, but we have to better monitor web browser cookie usage limits, as we go further down the road, but we &#8230;<\/p>\n<ul>\n<li>in a web browser address bar URL such as http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/<b>job_search_grid_game.htm<\/b> that <b>bold<\/b> part is combined with a reworked date and timestamp to be the &#8220;name&#8221; of the cookie &#8230; and only if &#8230;<\/li>\n<li>the web browser address bar URL must contain a &#8220;&amp;&#8221; to attract any attention as a candidate for the creation of a new cookie &#8230; which, if never encountered before &#8230;<\/li>\n<li>placed on a dropdown &#8220;cookie&#8221; list of game configurations that indicate the date and timestamp for reference purposes &#8230; and, as for all web browser scenarios &#8230;<\/li>\n<li>cookie logic only works while the user has not cleared the Browser History at their web browser<\/li>\n<\/ul>\n<p> &#8230; and that HTML (select element) dropdown is placed, in &#8220;overlay&#8221; style &#8230;<\/p>\n<ul>\n<li>position:absolute; top:0px ; left: 300px;<\/li>\n<li>opacity: 0.7;<\/li>\n<li>zIndex: 56;\n<\/li>\n<p> &#8230; the Javascript logic for which has been placed into some external Javascript you could call <a target=_blank title='cookie_get.js' href='http:\/\/www.rjmprogramming.com.au\/cookie_get.js_GETME'>cookie_get.js<\/a> that we are going to place at http:\/\/www.rjmprogramming.com.au\/ (document root) for maximal access purposes, and which is called by the <a target=_blank title='job_search_grid_game.htm' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html_GETME'>job_search_grid_game.htm<\/a> via &#8230;<\/p>\n<p><code>&lt;script type='text\/javascript' src='..\/..\/..\/..\/cookie_get.js'&gt;&lt;\/script&gt;<\/code><\/p>\n<p> &#8230; which is like saying any webpage out from document root to four subfolder hierarchy could all access this external Javascript with the same codeline between &lt;head&gt; and &lt;\/head&gt; as above, and that external Javascript uses a <i>setTimeout<\/i> function call to separate its logic from any clashes with <i>document.body<\/i> onload event logic, or any jQuery document ready logic.<\/p>\n<p>Now the HTML and Javascript could be called <a target=_blank title='job_search_grid_game.htm' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html-GETME'>job_search_grid_game.htm<\/a> and changed from yesterday for HTTP Cookie functionality in <a target=_blank title='Changes' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html-GETME'>this way<\/a>.<\/p>\n<p>We hope you get something out of these &#8220;early days&#8221; HTTP Cookie thoughts, that we may apply to some of our <a target=_blank title='Game tutorials' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/game'>game<\/a> web applications.<\/p>\n<hr>\n<p id='jsggt'>Previous relevant <a target=_blank title='Job Search Grid Game Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/job-search-grid-game-tutorial\/'>Job Search Grid Game Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Job Search Grid Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.JPG\" title=\"Job Search Grid Game Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Job Search Grid Game Tutorial<\/p><\/div>\n<p>We are always on the lookout for a good quiz or game.   But what if that idea is &#8220;sort of&#8221; &#8230; both?  Well, we just had to give the dog a bone!  <font size=1>But we digress.<\/font><\/p>\n<p>This is where we have to thank <a target=_blank title='Science Puzzles for Young Einsteins by Helene Hovanec ISBN 0-8069-3542-1' href='https:\/\/books.google.com.au\/books?isbn=0806958499'>Science Puzzles for Young Einsteins<\/a> by Helene Hovanec ISBN 0-8069-3542-1 profusely.  This book is full of wonderful brain games that combine puzzle feels with game feel and quiz feel.  We normally like to shape a game based on another we stumble across, and add our own content, but, alas, the content here for today&#8217;s game is so good, it makes my brain hurt thinking of another set to make it work.  And that is where we &#8220;value add&#8221;.  Not with the &#8220;default content&#8221; of the game, but to value add to the experience we CMS it.  So what does &#8220;CMS it&#8221; mean?  Well, &#8220;CMS&#8221; stands for <a target=_blank title='Content Management System information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Content_management_system'>&#8220;Content Management System&#8221;<\/a>, and we use the principles of CMS to encapsulate all the variable aspects we can think of about this game &#8230; <font size=1>within reason<\/font> and present that in an HTML form &#8230;<\/p>\n<ul>\n<li>method=GET<\/li>\n<li>action=.\/job_search_grid_game.html<\/li>\n<\/ul>\n<p> &#8230; our usual &#8220;suspects&#8221; for such goings on.  So should the information not be too long, this should allow the user to set their own content for the game &#8230; <font size=1>all you young and old Einsteins out there<\/font>.<\/p>\n<p>However, if you find today&#8217;s <a target=_blank title='Live run' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html'>game<\/a> interesting and\/or stimulating, rest assured Helene Hovanec has filled a book full of puzzles and quizzes and challenges like this, and so we would recommend you get out there and buy <a target=_blank title='Science Puzzles for Young Einsteins by Helene Hovanec ISBN 0-8069-3542-1' href='https:\/\/books.google.com.au\/books?isbn=0806958499'>Science Puzzles for Young Einsteins<\/a> by Helene Hovanec ISBN 0-8069-3542-1.<\/p>\n<p>Within the HTML and Javascript <a target=_blank title='job_search_grid_game.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/job_search_grid_game.html_GETME'>job_search_grid_game.html<\/a> code you will find lots of calls to Javascript&#8217;s <a target=_blank title='Javascript eval information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/jsref_eval.asp'>eval<\/a> method to get a CMS job done, but not involve a serverside language &#8230; <font size=1>does not compute<\/font> &#8230; <font size=1>whatttevvvvvvvver<\/font>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d27663' onclick='var dv=document.getElementById(\"d27663\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/game\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d27663' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d27676' onclick='var dv=document.getElementById(\"d27676\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/cookie\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d27676' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d27693' onclick='var dv=document.getElementById(\"d27693\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/editor\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d27693' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d27708' onclick='var dv=document.getElementById(\"d27708\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/editor\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d27708' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you do lots of text editing perhaps you take the &#8220;cursor&#8221; for granted. But just as the stylus on a vinyl record makes the music in relation to its position, the equivalent of our text editing &#8220;cursor&#8221; is that &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/do-it-yourself-html-textarea-editor-cursor-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[216,1860,264,281,2127,344,1822,576,652,997,1262,1319],"class_list":["post-27708","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-cms","tag-cookie","tag-cookies","tag-css","tag-cursor","tag-diy","tag-editor","tag-html","tag-javascript","tag-programming","tag-textarea","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/27708"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=27708"}],"version-history":[{"count":11,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/27708\/revisions"}],"predecessor-version":[{"id":29882,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/27708\/revisions\/29882"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=27708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=27708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=27708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}