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: [email protected] To unsubscribe, email: [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 [email protected]. For more options, visit https://groups.google.com/d/optout.
