Open seal20 opened 9 years ago
I've been investigating this, but it might require wholesale changes to the TinyMCE plugin. When assets is enabled, it's causing TinyMCE to look for the JS/CSS files in the assets folder, and they are not there. Asset's doesn't appropriately handle JS applets that use plugins. I can make it work with:
tinymce.baseURL = OC.linkTo('ownnote','js/tinymce');
... prior to the init of TinyMCE, but then it throws:
downloadable font: OS/2: bad linegap: -32 (font-family: "tinymce" style:normal weight:normal stretch:normal src index:1) source: http://192.168.56.101/owncloud/apps/ownnote/js/tinymce/skins/lightgray/fonts/tinymce.woff
Because skin.min.css contains:
@font-face{
font-family:tinymce;
src:url(fonts/tinymce.eot);
src:url(fonts/tinymce.eot?#iefix) format('embedded-opentype'),url(fonts/tinymce.woff) format('woff'),url(fonts/tinymce.ttf) format('truetype'),url(fonts/tinymce.svg#tinymce) format('svg');
font-weight:400;
font-style:normal
}
@font-face{
font-family:tinymce-small;
src:url(fonts/tinymce-small.eot);
src:url(fonts/tinymce-small.eot?#iefix) format('embedded-opentype'),url(fonts/tinymce-small.woff) format('woff'),url(fonts/tinymce-small.ttf) format('truetype'),url(fonts/tinymce-small.svg#tinymce) format('svg');
font-weight:400;
font-style:normal
}
And those "font" references aren't being found in the assets folder. Unfortunately I can't figure out a good way to determine if assets is enabled or not, so I can't dynamically switch with CSS file is being used. Just wanted to log the progress here.
Going to move this out to a new milestone in an effort to get some bug fixes out. It's still on the list, though.
I can confirm the same behaviour with:
nginx/1.6.2 php5-fpm/5.6.7-1 MariaDB/10.0.16
and assets enabled.
Might be worth reporting in core
since this is probably not the only app using libs like TinyMCE?
Still the same tinymce 404 errors if OC parameter 'asset-pipeline.enabled' is true: OC 8.1.3 Ownnote 1.05
Please add note regarding asset-pipeline config parameter to information section of README.md, like e.g.
I got this error too on Debian GNU/Linux 8
and PHP 5.6.27-0+deb8u1
and Firefox 52.0a2
and config.php 'asset-pipeline.enabled' => true,
and ownCloud 9.1.1
Changing config.php 'asset-pipeline.enabled' => false,
resolved my issue with getting Ownnote editor working.
Changing config.php 'asset-pipeline.enabled' => false, resolved the issue.
Resolve the issue?, that is the issue!
Yes you are right :), but my issue was that Ownnote editor wasn't working and the changes resolved my issue.
@enoch85 @brantje Hey guys, as you migrate over, two issues that get the most attention via emails or repeat tickets is this one. It's a byproduct of the WYSIWYG, so altering that front end as discussed could rectify it.
The other issue is mobile related and I will file a ticket there.
Steps to reproduce
Expected behaviour
The note app is still working
Actual behaviour
while the note list opens, the editor will not load with 404 error for plugin.js
Server configuration
Operating system: Centos 6.6
Web server: Apache2
Database: MySQL
PHP version:
ownCloud version: (see ownCloud admin page): 8.0.2
Updated from an older ownCloud or fresh install:yes 5->6->7-.8.0.2
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/... no
Are you using encryption: yes/no no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser: Firefox 35
Operating system: GNU/Linux (archlinux)
Logs
Web server error log
cannot find the error in the logs..
ownCloud log (data/owncloud.log)
nothing interresting here but anyway:
Browser log
a) without assets enabled
b) with assets enabled
The address for plugin.js: https://domain.com/owncloud/assets/plugins/preview/plugin.js and theme.js : https://domain.com/owncloud/assets/themes/modern/theme.js
while without assets it loads https://domain.com/owncloud/apps/ownnote/js/tinymce/plugins/lists/plugin.min.js
I have no idea how assets works but it was recommended for gallery + (https://github.com/interfasys/galleryplus/blob/stable8/README.md) and I follow this https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/js_css_asset_management_configuration.html