Re: FarCry 7 bugs

Mark Picker <[email protected]> Mon, 31 Mar 2014 21:11:15 -0700 (PDT)
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
------=_Part_36_8133080.1396325475434
Content-Type: text/plain; charset=UTF-8

With regards to the TinyMCE config, after I deleted/reset the config it did 
now allow me to edit and save a config (and use it).  However, I've just 
noticed that if I open the configuration again and resave it, it fails 
again with the same error. I didn't make any changes when I opened it.  The 
only way to fix it is to delete the config and start again.

On Tuesday, 1 April 2014 14:50:39 UTC+11, Justin Carter wrote:

> Didn't realise my last email to Mark was accidentally a private reply, 
> here it is for the record:
>
> From: Justin Carter
> Sent: Tuesday, 1 April 2014 2:31 PM
>  
> With a blank TinyMCE config and the "Enable Config" box checked it's 
> working OK for me. I also pasted the config from the richtext.cfc into the 
> box and it's working there as well.
>  
> Are you getting a problem saving the config, or opening it? It looks like 
> an issue deserializing, which is odd because you'd expect CF's own 
> deserialize method should be able to read something that it serialized in 
> the first place...
>  
> Try resetting the config by checking TinyMCE Configuration and clicking 
> the Delete / Reset button.
>  
> Also, could you post your config to the list so that I can test it?
>  
> Here's the one I'm using from core that works:
>  
> plugins : 
> "farcrycontenttemplates,layer,table,hr,image_farcry,link_farcry,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,anchor,charmap,code,textcolor",
> extended_valid_elements: 
> "code,colgroup,col,thead,tfoot,tbody,abbr,blockquote,cite,button,textarea[name|class|cols|rows],script[type],img[style|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]",
> menubar : false,
> toolbar : "undo redo | cut copy paste pastetext | styleselect | bold 
> italic underline | bullist numlist link image table farcryuploadcontent 
> farcrycontenttemplates | code | fullscreen",
> remove_linebreaks : false,
> forced_root_block : 'p',
> relative_urls : false,
> entity_encoding : 'raw'
>  
>  
> cheers,
> Justin
>
> ---
>
> Mark confirmed that deleting / resetting the config has fixed the issue 
> with saving - I'm thinking perhaps it was an older copy of the config that 
> included the TinyMCE 3 config that had been converted from WDDX to JSON and 
> something went wrong in the process. As far as the code is concerned it's 
> just serializing / deserializing a struct, so I'm not sure yet what could 
> have caused that to fail.
>
>
> cheers,
> Justin
>
>
> On Tuesday, April 1, 2014 2:44:53 PM UTC+11, Justin Carter wrote:
>>
>> The additional <p> tags may have something to do with 
>> the forced_root_block : 'p' in the config, but it would appear to be a 
>> TinyMCE bug more than anything... This has been the default setting (even 
>> though we provide it explicitly) since TinyMCE 3, and is almost always the 
>> desired option:
>>
>> http://www.tinymce.com/wiki.php/Configuration:forced_root_block
>>
>> (Hah, I wrote this straight after my last email and didn't hit send - 
>> just saw your reply now, but I'll hit send anyway! So yeah, definitely 
>> wouldn't want to set that value to false...)
>>
>>
>> On Tuesday, April 1, 2014 1:58:57 PM UTC+11, Mark Picker wrote:
>>>
>>> I've just tested the image resize problem with IE11 and it does NOT have 
>>> this problem.  However (more great news...) I've noticed that IE11 has 
>>> another problem that Opera also has; when resizing the image it keeps 
>>> adding extra <p></p> tags after the img tag. So you end up with something 
>>> like:
>>>  
>>> <p>Testing image resize</p>
>>> <p><img src="/images/dmImage/SourceImage/background%2Dmining%2Ejpg" 
>>> border="0" width="537" height="359" /></p>
>>> <p> </p>
>>> <p> </p>
>>> <p> </p>
>>> <p> </p>
>>> <p> </p>
>>>  
>>> Slight difference is that Opera sometimes doesn't put a space between 
>>> the closing p tag.
>>>  
>>> I was assuming these were TinyMCE bugs, not FarCry however I don't 
>>> experience the same issue when using the TinyMCE demo site.
>>>
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.

------=_Part_36_8133080.1396325475434
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>With regards to the TinyMCE config, after I deleted/r=
eset the config it did now allow me to edit and save a config (and use it).=
&nbsp; However, I've just noticed that if I open the configuration again an=
d resave it, it fails again with the same error. I didn't make any changes =
when I opened it.&nbsp; The only way to fix it is to delete the config and =
start again.</div><div><br>On Tuesday, 1 April 2014 14:50:39 UTC+11, Justin=
 Carter  wrote:</div><blockquote class=3D"gmail_quote" style=3D"margin: 0px=
 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); b=
order-left-width: 1px; border-left-style: solid;"><div dir=3D"ltr">Didn't r=
ealise my last email to Mark was accidentally a private reply, here it is f=
or the record:<div><br></div><div><div>From: Justin Carter</div><div>Sent: =
Tuesday, 1 April 2014 2:31 PM</div><div>&nbsp;</div><div>With a blank TinyM=
CE config and the "Enable Config" box checked it's working OK for me. I als=
o pasted the config from the richtext.cfc into the box and it's working the=
re as well.</div><div>&nbsp;</div><div>Are you getting a problem saving the=
 config, or opening it? It looks like an issue deserializing, which is odd =
because you'd expect CF's own deserialize method should be able to read som=
ething that it serialized in the first place...</div><div>&nbsp;</div><div>=
Try resetting the config by checking TinyMCE Configuration and clicking the=
 Delete / Reset button.</div><div>&nbsp;</div><div>Also, could you post you=
r config to the list so that I can test it?</div><div>&nbsp;</div><div>Here=
's the one I'm using from core that works:</div><div>&nbsp;</div><div>plugi=
ns : "farcrycontenttemplates,layer,<wbr>table,hr,image_farcry,link_<wbr>far=
cry,insertdatetime,media,<wbr>searchreplace,contextmenu,<wbr>paste,directio=
nality,<wbr>fullscreen,noneditable,<wbr>visualchars,nonbreaking,<wbr>anchor=
,charmap,code,textcolor"<wbr>,</div><div>extended_valid_elements: "code,col=
group,col,thead,<wbr>tfoot,tbody,abbr,blockquote,<wbr>cite,button,textarea[=
name|<wbr>class|cols|rows],script[type],<wbr>img[style|class|src|border=3D0=
|<wbr>alt|title|hspace|vspace|width|<wbr>height|align|onmouseover|<wbr>onmo=
useout|name]",</div><div>menubar : false,</div><div>toolbar : "undo redo | =
cut copy paste pastetext | styleselect | bold italic underline | bullist nu=
mlist link image table farcryuploadcontent farcrycontenttemplates | code | =
fullscreen",</div><div>remove_linebreaks : false,</div><div>forced_root_blo=
ck : 'p',</div><div>relative_urls : false,</div><div>entity_encoding : 'raw=
'</div><div>&nbsp;</div><div>&nbsp;</div><div>cheers,</div><div>Justin</div=
></div><div><br></div><div>---<br></div><div><br></div><div>Mark confirmed =
that deleting / resetting the config has fixed the issue with saving - I'm =
thinking perhaps it was an older copy of the config that included the TinyM=
CE 3 config that had been converted from WDDX to JSON and something went wr=
ong in the process. As far as the code is concerned it's just serializing /=
 deserializing a struct, so I'm not sure yet what could have caused that to=
 fail.</div><div><br></div><div><br></div><div>cheers,</div><div>Justin</di=
v><div><br><br>On Tuesday, April 1, 2014 2:44:53 PM UTC+11, Justin Carter w=
rote:<blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; =
padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width=
: 1px; border-left-style: solid;"><div dir=3D"ltr">The additional &lt;p&gt;=
 tags may have something to do with the&nbsp;forced_root_block : 'p' in the=
 config, but it would appear to be a TinyMCE bug more than anything... This=
 has been the default setting (even though we provide it explicitly) since =
TinyMCE 3, and is almost always the desired option:<div><br></div><div><a o=
nmousedown=3D"this.href=3D'http://www.google.com/url?q\75http%3A%2F%2Fwww.t=
inymce.com%2Fwiki.php%2FConfiguration%3Aforced_root_block\46sa\75D\46sntz\0=
751\46usg\75AFQjCNH1y3PggWC0bkIe7k20V5t9GNzysg';return true;" onclick=3D"th=
is.href=3D'http://www.google.com/url?q\75http%3A%2F%2Fwww.tinymce.com%2Fwik=
i.php%2FConfiguration%3Aforced_root_block\46sa\75D\46sntz\0751\46usg\75AFQj=
CNH1y3PggWC0bkIe7k20V5t9GNzysg';return true;" href=3D"http://www.tinymce.co=
m/wiki.php/Configuration:forced_root_block" target=3D"_blank">http://www.ti=
nymce.com/wiki.<wbr>php/Configuration:forced_root_<wbr>block</a></div><div>=
<br></div><div>(Hah, I wrote this straight after my last email and didn't h=
it send - just saw your reply now, but I'll hit send anyway! So yeah, defin=
itely wouldn't want to set that value to false...)</div><div><br><br>On Tue=
sday, April 1, 2014 1:58:57 PM UTC+11, Mark Picker wrote:<blockquote class=
=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; bor=
der-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-sty=
le: solid;"><div dir=3D"ltr"><div>I've just tested the image resize problem=
 with IE11 and it does NOT have this problem.&nbsp; However (more great new=
s...) I've noticed that IE11 has another problem that Opera also has; when =
resizing the image it keeps adding extra &lt;p&gt;&lt;/p&gt; tags after the=
 img tag. So you end up with something like:</div><div>&nbsp;</div><div>&lt=
;p&gt;Testing image resize&lt;/p&gt;<br>&lt;p&gt;&lt;img src=3D"/images/dmI=
mage/<wbr>SourceImage/background%<wbr>2Dmining%2Ejpg" border=3D"0" width=3D=
"537" height=3D"359" /&gt;&lt;/p&gt;<br>&lt;p&gt; &lt;/p&gt;<br>&lt;p&gt; &=
lt;/p&gt;<br>&lt;p&gt; &lt;/p&gt;<br>&lt;p&gt; &lt;/p&gt;<br>&lt;p&gt; &lt;=
/p&gt;</div><div>&nbsp;</div><div>Slight difference is that Opera sometimes=
 doesn't put a space between the closing p tag.</div><div>&nbsp;</div><div>=
I was assuming these were TinyMCE bugs, not FarCry however I don't experien=
ce the same issue when using the TinyMCE demo site.</div></div></blockquote=
></div></div></blockquote></div></div></blockquote></div>

<p></p>

-- <br />
You received this message cos you are subscribed to &quot;farcry-dev&quot; =
Google group.<br />
To post, email: farcry-dev-/[email protected]<br />
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]<br />
For more options: <a href=3D"http://groups.google.com/group/farcry-dev">htt=
p://groups.google.com/group/farcry-dev</a><br />
--------------------------------<br />
Follow us on Twitter: <a href=3D"http://twitter.com/farcry">http://twitter.=
com/farcry</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;farcry-dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:farcry-dev+unsubscribe-/[email protected]">farcry-d=
ev+unsubscribe-/[email protected]</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_36_8133080.1396325475434--