YAFLogo

Posted by: BWG - Thursday, 28 March 2019 17:30:15
Hi, Since upgrading to YAF 2.2.4.15 the TinyMCE html editor no longer works. It is selected in the host settings but the bbcode editor appears to be loading instead. CKEditor (html) is working ok. Can't see any obvious reason for this. I've tried copying across the Tinymce folder from the previous version of YAF but it still does not work. Ideas? Thanks BWG

Posted by: tha_watcha - Thursday, 28 March 2019 17:38:03
[quote=BWG;71858]Hi, Since upgrading to YAF 2.2.4.15 the TinyMCE html editor no longer works. It is selected in the host settings but the bbcode editor appears to be loading instead. CKEditor (html) is working ok. Can't see any obvious reason for this. I've tried copying across the Tinymce folder from the previous version of YAF but it still does not work. Ideas? Thanks BWG[/quote] YAF reverts back to the Standard editor if the tinymce is not found. It looks for the file [b]tinymce.min.js[/b] in the tiny_mce folder [b]Scripts/tinymce/[/b]

Posted by: BWG - Thursday, 28 March 2019 17:55:55
[quote=tha_watcha;71859][quote=BWG;71858]Hi, Since upgrading to YAF 2.2.4.15 the TinyMCE html editor no longer works. It is selected in the host settings but the bbcode editor appears to be loading instead. CKEditor (html) is working ok. Can't see any obvious reason for this. I've tried copying across the Tinymce folder from the previous version of YAF but it still does not work. Ideas? Thanks BWG[/quote] YAF reverts back to the Standard editor if the tinymce is not found. It looks for the file [b]tinymce.min.js[/b] in the tiny_mce folder [b]Scripts/tinymce/[/b][/quote] The tinymce.min.js is in the correct folder. I am running YAF as a virtual application under the root website in IIS. Is it possible that is the reason why it can't resolve the path to the tiny_mce folder? Edit: I've had chance to do some local debugging and can replicate on my dev machine. 1) In host set the editor to CKEditor (HTML) 2) Post a message This causes the RegisterCKEditorCustomJS() method to fire 1) In host set the editor to TinyMCE (HTML) 2) Post a message This does NOT cause the RegisterTinyMceCustomJS() to fire and so the editor is not setting I don't yet know why this is happening.

Posted by: BWG - Thursday, 28 March 2019 22:48:27
Got it! I upgraded from an older version and the app.config was missing a YAF.FileRoot entry. Not sure why CKEditor (HTML) was working - perhaps the code uses YAF.AppRoot instead.