{"id":50446,"date":"2020-10-06T03:01:36","date_gmt":"2020-10-05T17:01:36","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=50446"},"modified":"2020-10-04T11:35:26","modified_gmt":"2020-10-04T01:35:26","slug":"editable-and-uneditable-text-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/editable-and-uneditable-text-primer-tutorial\/","title":{"rendered":"Editable and Uneditable Text Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/div_within_div.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Editable and Uneditable Text Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/div_within_div.jpg\" title=\"Editable and Uneditable Text Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Editable and Uneditable Text Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve become quite interested in the text editing control the recent &#8230;<\/p>\n<ul>\n<li>discovery in <a target=_blank title='Javascript Array Method Mobile Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/javascript-array-method-mobile-tutorial\/'>Javascript Array Method Mobile Tutorial<\/a> that a &#8220;button&#8221; (within a &#8220;div contenteditable=true&#8221;) could be coaxed into avoiding any mobile keyboard annoyances &#8230; via &#8230;<\/li>\n<li>different to today for &#8220;onclick&#8221; work set inner non-editable part to contenteditable=true (go figure) but, today, with the &#8220;text meets text&#8221; highlighting of non-editable parts that we allow the user to control &#8230;<\/li>\n<li>their inner non-editable parts to contenteditable=false (for both mobile and non-mobile &#8230; we&#8217;ve discovered today)<\/li>\n<\/ul>\n<p> &#8230; whereby editable and noneditable text can sit side by side within an HTML div contenteditable element &#8220;text <font size=1>editor<\/font> palette&#8221;.<\/p>\n<p>We &#8220;glow&#8221; and &#8220;mark&#8221; (about which you should read our <a target=_blank title='HTML5 Mark Tag with Glowing Text Tutorial' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/html5-mark-tag-with-glowing-text-tutorial\/'>HTML5 Mark Tag with Glowing Text Tutorial<\/a>) the uneditable bits the user highlights in addition to the &#8230;<\/p>\n<blockquote><p>\nYours sincerely,<br \/>\n<br \/>\nRJM Programming\n<\/p><\/blockquote>\n<p> &#8230; we start out making uneditable (but no &#8220;glow&#8221; nor &#8220;mark&#8221; here) you can try for yourself with today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/div_within_div.html_GETME\" title=\"div_within_div.html\">div_within_div.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/div_within_div.html\" title=\"Click picture\">live run<\/a> &#8230;<\/p>\n<p><iframe src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/div_within_div.html\" style=\"width:100%;height:900px;\"><\/iframe><\/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='#d50446' onclick='var dv=document.getElementById(\"d50446\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/contenteditable\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d50446' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve become quite interested in the text editing control the recent &#8230; discovery in Javascript Array Method Mobile Tutorial that a &#8220;button&#8221; (within a &#8220;div contenteditable=true&#8221;) could be coaxed into avoiding any mobile keyboard annoyances &#8230; via &#8230; different to &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/editable-and-uneditable-text-primer-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,14,37],"tags":[2442,281,342,2570,3433,3030,576,652,2165,3434,997,1254,1319],"class_list":["post-50446","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-contenteditable","tag-css","tag-div","tag-edit","tag-editable","tag-glow","tag-html","tag-javascript","tag-mark","tag-palette","tag-programming","tag-text","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50446"}],"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=50446"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50446\/revisions"}],"predecessor-version":[{"id":50457,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50446\/revisions\/50457"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=50446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=50446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=50446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}