TinyMCE plugin not working in dotCMS 4

19 views
Skip to first unread message

dile...@gmail.com

unread,
Nov 9, 2017, 9:08:47 AM11/9/17
to dotCMS User Group
The latest version of TinyMCE plugin provided on the website does not work.

When opening a piece of content that has a WYSIWYG field, the following errors are thrown:

[09/11/17 15:02:58:274 CET] ERROR portlet.PortletRequestDispatcherImpl: Unable to compile class for JSP:

An error occurred at line: [14] in the generated java file: [xxxx\dotserver\tomcat-xxx\work\Catalina\localhost\ROOT\org\apache\jsp\html\plugins\org_dotcms_tinymce_005fextended\tiny_005fmce_005fconfig_jsp.java]
Only a type can be imported. com.dotmarketing.portlets.files.model.File resolves to a package

An error occurred at line: [17] in the generated java file: [xxxx\dotserver\tomcat-xxx\work\Catalina\localhost\ROOT\org\apache\jsp\html\plugins\org_dotcms_tinymce_005fextended\tiny_005fmce_005fconfig_jsp.java]
Only a type can be imported. com.dotmarketing.portlets.files.business.FileFactoryImpl resolves to a package

An error occurred at line: [136] in the jsp file: [/html/plugins/org.dotcms.tinymce_extended/tiny_mce_config.jsp]
File cannot be resolved to a type
133:            }catch(Exception e){                
134:            }
135:             //cssPath = cssPath.replaceAll(Config.getStringProperty("VIRTUAL_FILE_PREFIX"), "");
136:             File file = null;
137:                try {
138:                    file = APILocator.getFileAPI().getFileByURI(cssPath,host,true, APILocator.getUserAPI().getSystemUser(), true);
139:                }catch(Exception e){                


An error occurred at line: [138] in the jsp file: [/html/plugins/org.dotcms.tinymce_extended/tiny_mce_config.jsp]
The method getFileAPI() is undefined for the type APILocator
135:             //cssPath = cssPath.replaceAll(Config.getStringProperty("VIRTUAL_FILE_PREFIX"), "");
136:             File file = null;
137:                try {
138:                    file = APILocator.getFileAPI().getFileByURI(cssPath,host,true, APILocator.getUserAPI().getSystemUser(), true);
139:                }catch(Exception e){                
140:                }


Nathan Keiter

unread,
Nov 9, 2017, 9:16:09 AM11/9/17
to dot...@googlegroups.com

Yes, I discovered the same issue.  They say they changed versions and the configuration needs to be updated accordingly.

 

They pointed me to here: https://dotcms.com/docs/latest/controlling-tinymce-wysiwyg

 

However, I have not tried fixing it yet. We decided to evaluate whether we still need to override the default configuration or not.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/31544163-0b3a-4045-824e-62c6594836c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages