Allow a node that contains a single text node consisting of white space characters to be focused / selected

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • None
    • Affects Version/s: None
    • Component/s: None

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      tinymce.dom.Selection.select() currently contains the following:

      if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) {
      	if (start)
      		rng.setStart(node, 0);
      	else
      		rng.setEnd(node, node.nodeValue.length);
      
      	return;
      }
      

      Specifically:

      tinymce.trim(node.nodeValue).length != 0
      

      This was introduced in the SHA 99f4007ece049d35a2be005c094b4c795afca177 on tinymce @ github.

      Its not clear why this is necessary.

            Assignee:
            Steve Haffenden (Inactive)
            Reporter:
            dave (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: