Having a problem with importcss. This happened on one site several weeks ago, and I fixed it (after many hours of hair-pulling). Now, I've installed tinymcewrapper on a new site, and the problem is showing up here as well. I copied all of the settings directly from the site on which I fixed the problem, and none of the other sites I've put tinymcewrapper on (about 10 sites at this point) are having the problem. Of course, I can't remember what I did to fix the first site, and didn't write it down anywhere. :-(
I've got:
content_css : "/css/styles.user.css",
and that is loading properly because the text inside the editing window is styled properly.
I've got:
plugins: "autoresize,preview,paste,contextmenu,image,fullscreen,code,charmap,searchreplace,textpattern, importcss,table,anchor,nonbreaking,lists,media,hr,template",
importcss_groups: [
{title: 'Table styles', filter: /^(td|tr|th|table)\./}, // td.class and tr.class
{title: 'Block styles', filter: /^(div|p|h2|h3|h4|h5)\./}, // div.class and p.class
{title: 'Bullet styles', filter: /^(ul|ol|li)\./}, //
{title: 'Link styles', filter: /^(a)\./}, //
{title: 'Image styles', filter: /^(img|figure)\./}, //
{title: 'Inline styles'} // The rest
],
importcss_append: true,
And none of the classes in the css file get added to the Formats menu. I even tried just putting ONE simple, valid class in there to see if there was maybe some style in the css file was causing the import to fail, and still that one class was not imported into the Formats menu.
Do you have any ideas? Have you seen this happen before?? It's driving me crazy today . . .
I've attached two images, one from the working site, and the other from the not-working site.
WORKING:
NOT WORKING:
(sorry, ignore the links below. attachments seem to be broken on the forum, and now I can't remove them.)
[ed. note: rainbowtiger last edited this post 6 years, 7 months ago.]