title: Javascript / JQuery Contenteditable resize handles should set table column width parameter
body: <p>I'm looking for a solution primarily supported by Webkit browsers (Chrome / Edge / Safari) that allows table columns to change the actual width of these columns when the resize property is set in a contenteditable field. Now here's what I've done so far.</p>
  <p>I've added the resize handles in the first row of the columns by adding the following CSS (.editortable is the class for the tables) :</p>
  <pre><code>.editortable tr:first-child td {
      padding: 4px;
      cursor:pointer;
      resize:both;
      border: 1px dotted #333;
      overflow:auto;
  }
  </code></pre>
  <p>This shows the resize handles in the contenteditable field, allowing for rescaling the table columns. But what it doesn't do, is set the new width and height in the underlying HTML by adding a &quot;width&quot; and &quot;height&quot; attribute with the appropriate values. How can this be done in either vanilla javascript or JQuery?</p>
  <p>Sorry for my English, it's not my native language. I hope you guys understand what I'm trying to accomplish here.</p>
  <pre><code>&lt;div contenteditable=&quot;true&quot;&gt;
      &lt;table class=&quot;editortable&quot;&gt;
        &lt;tr&gt;
           &lt;td&gt;1&lt;/td&gt;&lt;td&gt;Just some text&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Here's the fiddle; <a href="https://jsfiddle.net/7trwxoug/" rel="nofollow noreferrer">https://jsfiddle.net/7trwxoug/</a></p>