TinyMCE plugin not working in dotCMS 4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TinyMCE plugin not working in dotCMS 4

Yasin
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:                }


--
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 [hidden email].
To post to this group, send email to [hidden email].
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 | Threaded
Open this post in threaded view
|

RE: TinyMCE plugin not working in dotCMS 4

Nathan Keiter

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

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, November 09, 2017 9:09 AM
To: dotCMS User Group
Subject: [dotcms] TinyMCE plugin not working in dotCMS 4

 

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:                }

 

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1dc598f06c624759a45d277a2075c112%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.