1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Per PR #91 fix issue processwire/processwire-issues#385 where ProcessPageEditImageSelect nosize option wasn't working with InputfieldCKEditor pwimage plugin

This commit is contained in:
Ryan Cramer
2017-10-12 11:12:42 -04:00
parent f4971ae5d4
commit 47b87d283b
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@
// note: class is added to figureWrapper (rather than <img>) when this is a caption
if(caption === false) $insertHTML.addClass(cls);
if(width > 0) $insertHTML.attr('width', width);
if(width > 0 && $img.attr('data-nosize') != '1') $insertHTML.attr('width', width);
if($linkWrapper) {
// img was wrapped in an <a>...</a> and/or <figure>

File diff suppressed because one or more lines are too long