Can't get TinyMCE to pick up my own CSS file - tinymce

I have followed the instructions here
http://www.tinymce.com/wiki.php/configuration:content_css
and created my own CSS file in my Apps root folder, referenced it using
tinyMCE.init({
content_css : "mycontent.css",
but it never gets picked up.
We are using TinyMCE '3.5.6' If I make changes to the content.css file these are picked up ok so it's not a caching issue. Any ideas on what else to try?

Related

chosen-js css styles not loading

I'm having a problem using chosen-js where the styles aren't loading. I'm using webpack, so I'm not sure if there is an additional css file I need to include, but the npm package doesn't seem to have any additional css files.
It seems like it's just rendering as a normal list, and the styles are not imported.
So my question is, do I have to import an additional .css file for chosen.js to work (with webpack)?
Yes, there is chosen.css which you need to include.
https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.3/chosen.min.css
This file is also present in the npm package.
Also make sure you have the .png files in scope.
Here is the content of the node_modules/chosen-js

css file in rte_ckeditor in TYPO3 8.7.1 is not reloaded after modification

i try to implement own css styles in an individual style sheet file in rte_ckeditor in TYPO3 8.7.1. I run in the problem, that modifications in the style sheet are not recognized until i rename the style sheet.
Deleting the cache dont have any effect. I presume that the browser simply does not reload the style sheet.
Any ideas?
Thanks.
I found a workaround: Open the linked style sheet in an other browser window and manually reloading (forced reload) the content of this window after every modification. Not really nice - it interrupts the workflow a bit - but it works. After reloading the css the rte shows the new styles.
Version 8.7.9 and the issue still seems to exist.
What I do as a workaround is to open the ckeditor configuration (yaml) file as well and add "?v=1" to the defined filename, e.g.:
editor:
config:
contentsCss: "EXT:tx_yourext/Resources/Public/Css/editor.css?v=1"
The yaml file does not get cached, so whenever I do changes in the CSS file, I also change the parameter inside the yaml file.

file not showing up in render derbyjs

I have a new file:
message.html
Restarting node doesn't seem to get it to render. Pointing derby to render a different file works, just not "message".... I assume the filesystem or something is having an issue.
For the record, it isn't the html file as I copied and pasted other files that do work....
Any ideas?
I realized I didn't import the html file...
<import: src='./message'>
It was in a higher file so I forgot about it....

Activating/Adding a button to tinyMCE

I am unfortunately lost, I am trying to install an image upload plugin to my tinyMCE editor and after some research I chose : http://justboil.me/tinymce-images-plugin/
I followed the instructions and added the folder to my tinyMCE plugin directory, configured my settings with the config.php file but when it comes to activating it and adding the button in tinyMCE I am lost.
The site talks about using this code somewhere but I even with some research i still cannot find what I need to do, could anyone point me is to where I would add the code?
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
relative_urls : false,
plugins : "jbimages",
theme_advanced_buttons1 : "jbimages,|"
// Other TinyMCE options
});
</script>
Thank you.
Assuming that the config.php file you mention contains the tinyMCE configuration parameters, then all you need to do is add jbimages to one of your *theme_advanced_buttons* config items in the position on the toolbar where you want it to appear.
If however the config.php file doesn't contain the full TinyMCE configuration, then it would appear whoever integrated TinyMCE into your application has hidden that functionality and you will need to talk to them or tell us what product you are using TinyMCE in.

How do I turn off codetidy in TinyMCE editor in Umbraco?

I am running Umbraco 4.5.2. In config/umbracosettings I have made the change
<TidyEditorContent>False</TidyEditorContent>
In TinyMCEConfig I have deleted the valid elements and replaced with
<validElements><![CDATA[*[*]]]></validElements>
I have gone into web.config, added a space and resaved - to get Umbraco to reload the config files.
In Umbraco when I add content, it is still being 'tidied' and stripping out tags that I want left in. I just want to turn the code tidy off completely.
You have to explicatively define the valid elements in the validElements section in the TinyMCE config. The behavior you are experiencing is not related to Tidy.