<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Движок сайтов S2 — Как правильно убрать width и height при вставке картинок?]]></title>
	<link rel="self" href="https://s2cms.ru/forum/feed/atom/topic/224/"/>
	<updated>2014-01-20T13:03:25Z</updated>
	<generator>PunBB</generator>
	<id>https://s2cms.ru/forum/topic/224/</id>
		<entry>
			<title type="html"><![CDATA[Re: Как правильно убрать width и height при вставке картинок?]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/1030/#p1030"/>
			<content type="html"><![CDATA[<p>Исправляйте эту строчку: <a href="http://s2cms.ru/trac/browser/trunk/_admin/js/admin.js#L1329">http://s2cms.ru/trac/browser/trunk/_adm … n.js#L1329</a><br />Должно быть</p><div class="codebox"><pre><code>var sOpenTag = &#039;&lt;img src=&quot;&#039; + s + &#039;&quot;  &#039; + &#039;alt=&quot;&#039;, sCloseTag = &#039;&quot; /&gt;&#039;;</code></pre></div><p>Я бы делал по-другому: добился отмены действия этих атрибутов через стили. Например, если картинки нужно растянуть по всей ширине колонки:</p><div class="codebox"><pre><code>... img {
    width: 100%;
    height: auto;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2014-01-20T13:03:25Z</updated>
			<id>https://s2cms.ru/forum/post/1030/#p1030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как правильно убрать width и height при вставке картинок?]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/1028/#p1028"/>
			<content type="html"><![CDATA[<p><strong>Роман</strong>, после выбора картинки для вставки, в редакторе появлятся:<br /></p><div class="quotebox"><blockquote><p>&lt;img src=&quot;path_to_image&quot; width=&quot;1600&quot; height=&quot;900&quot; alt=&quot;&quot; /&gt;</p></blockquote></div><p>нужно чтобы стало так:<br /></p><div class="quotebox"><blockquote><p>&lt;img src=&quot;path_to_image&quot; alt=&quot;&quot; /&gt;</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[andrey]]></name>
				<uri>https://s2cms.ru/forum/user/159/</uri>
			</author>
			<updated>2014-01-20T12:15:53Z</updated>
			<id>https://s2cms.ru/forum/post/1028/#p1028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как правильно убрать width и height при вставке картинок?]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/1027/#p1027"/>
			<content type="html"><![CDATA[<p>Вопрос до конца не понял. Возможно, что-то сделать в районе этой строчки: <a href="http://s2cms.ru/trac/browser/trunk/_admin/js/pictman.js#L388">http://s2cms.ru/trac/browser/trunk/_adm … an.js#L388</a></p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2014-01-14T20:01:33Z</updated>
			<id>https://s2cms.ru/forum/post/1027/#p1027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как правильно убрать width и height при вставке картинок?]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/1026/#p1026"/>
			<content type="html"><![CDATA[<p>Нужно через плагин, при вставке картинки не добавлять атрибуты width и height. Как это можно сделать ?</p>]]></content>
			<author>
				<name><![CDATA[andrey]]></name>
				<uri>https://s2cms.ru/forum/user/159/</uri>
			</author>
			<updated>2014-01-14T12:47:08Z</updated>
			<id>https://s2cms.ru/forum/post/1026/#p1026</id>
		</entry>
</feed>
