tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/22561-not-set-a-heightwidth-of-embedded-image-within-wysiwygCascade CMS: Discussion 2018-10-18T20:37:59Ztag:help-archives.hannonhill.com,2010-02-09:Comment/402142652016-06-28T19:27:31Z2016-06-28T19:27:31ZNot set a Height/Width of embedded image within WYSIWYG<div><p>Hi Brendon,</p>
<p>Before we moved onto file choosers in data definition blocks, I
used the template-level format to remove the <code>width</code> and
<code>height</code> attributes of <code>img</code>. I could also
use web services to modify pages directly. Now we teach users not
to insert images directly into a WYSIWYG, the main reason being
that we want to use <code>srcset</code>.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/402142652016-06-28T20:12:22Z2016-06-28T20:12:22ZNot set a Height/Width of embedded image within WYSIWYG<div><p>Hi,</p>
<p>The issue is the TinyMCE plugin adds these dimensions, and I am
pretty sure does not allow for percentages either. Wing's proposed
solution is what I generally recommend. To go a step further, you
could use XPath to further target specific images.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/402142652016-06-28T20:51:47Z2016-06-28T20:51:47ZNot set a Height/Width of embedded image within WYSIWYG<div><p>I thought this may be the case.</p>
<p>It’s a bit of a catch because there are instances where we
will want to set this attribute.</p>
<p>As Wing suggested, I think we’ll have to go the teaching
route. Many thanks!</p>
<p>Brendon</p></div>birwin