How do add Styles to JCE editor in Joomla 2.5? - editor

I am using Joomla 2.5 with the JCE editor. I want to add my own styles but the problem is they don't appear in the Styles selection of the editor. I have the JCE configuration pointing to the editor.css, and while it does recognize the other classes in the editor.css file it doesn't recognize the ones I've added. I've cleared cache in the browser and cleared cache in Joomla, have logged out and back in, and they still don't appear.
What am I doing wrong that these Styles don't appear? Does JCE read them directly from the editor.css files each time the page loads or does it store them in some intermediary place or even in a MySQL table?
I was looking at this article:
http://www.joomlacontenteditor.net/support/tutorials/editor/item/create-a-custom-editor-stylesheet
I'm not clear on this, the class has to be present in the editor.css AND the template.css, not just the editor.css? Thanks!

JCE might cache the contents of the custom CSS file, but you should be able to see any changes you make to editor.css in your styles drop down. The file you point JCE to use for custom styles only allows you to see them in the style drop down. In order for the styles to work on the site, you have to either a) load the same file in to your template so the styles are available or b) add the styles to your template.css or other css file that is being loaded by your template.

Related

TinyMCE within Electron; hashed anchors don't work

Has anyone tried to use hashed anchor tags within TinyMCE within Electron? When I add the Table of Contents, none of the hyperlinks work.
It should be noted I am using the Quasar framework (Vue 3) as a SPA without using any navigation (due to how the application is built, I cannot use routes). (The built in Quill editor isnt sufficient for my needs)
I should be able to click on the ToC link and have the page scroll down to the appropriate heading within the editor.
I tried both the iframe and inline modes and that still didn't help. I also tried to catch the did-navigate-in-page webContents event in my main script but it doesn't even register it.

Which files to use out of the many included in JQuery mobile download

I have not been able to get an explanation of which files are needed in a JQuery Mobile Web site. The stackoverflow documentation on JQuery Mobile shows that there is one file for css and one file for js:
jquery.mobile-1.4.5.min.css
jquery.mobile-1.4.5.min.js
However, downloading the JQuery Mobile 1.4.5 package one ends up with many more. All files that have ".min" appended to the name of the asset, is a minimized version.
The standard download includes one js (the one mentioned above). That is required, as well as JQuery itself. At this date, the latest jQuery that is compatible with jQuery Mobile 1.4.5:
jquery-2.2.4.js
(correct me if that is not true)
For css files standard download includes:
jquery.mobile-1.4.5.css
jquery.mobile.structure-1.4.5.css
jquery.mobile.theme-1.4.5.css
jquery.mobile.external-png-1.4.5.css
jquery.mobile.icons-1.4.5.css
jquery.mobile.inline-png-1.4.5.css
jquery.mobile.inline-svg-1.4.5.css
It appears to me that the first file contains all the rest. So that one can choose to include all at once with one file. The others, I guess, would be used if less code is wanted in a streamlined version of JQuery Mobile. However if one does not use jquery.mobile.css, which are needed in HTML at the top of the page?
If one uses ThemeRoller, jquery.mobile.theme.css becomes MySITE.css (whatever name was selected during the export process in ThemeRoller). If one uses a custom theme, then that theme css is needed, along with jquery.mobile.structure.css.
If one includes jquery.mobile.icons.css, does that in turn include in the external-png, external-svg, and inline-png files?
And what is "jquery.mobile-1.4.5.min.map" for and when is it needed?
That would all be good information for the documentation in stackoverflow.
I created a custom theme (mysite.css) in ThemeRoller so I include the following in HTML (in the appropriate link of script tag):
mysite.css
jquery.mobile.icons-1.4.5.css
jquery.mobile.structure-1.4.5.css
jquery-2.2.4.min.js
jquery.mobile-1.4.5.js
Is that correct?

How to add themeroller custom theme to my website?

I have created a custom theme using Jquerymobile.com themeroller.
A mobile website which i have created using default theme values like .js and .css folders.
Now i want to change that theme of my website to my new custom theme,created using themeroller.
How to include those files to my coding?
When you download the themerolloer that you create, there is a sample index.html file that uses the theme that is enclosed. Look at that to see what files need to be included in your page, but more importantly, look at that code to see what CSS classes are being used - no point in including them in your page if you aren't using using the Themeroller classes
You can see all the steps, and a full tutorial on the Getting Started page

How can I make minimum JQuery UI Tabs control?

I only need a JQuery UI Tabs, so I access http://jqueryui.com/download and only select Core, Widget and Tabs 3 check boxs, then download the package jquery-ui-1.8.17.custom.zip
I find that there are many files I needn't in the package, but I don't know how can I delete these files.
And more css\ui-lightness\jquery-ui-1.8.17.custom.css inculde many content I don't need if I only use Tabs, it seems that I can delete the whole folder css\ui-lightness\images and don't cause error.
Go to http://jqueryui.com/download and select core, widget and tabs then download the package.
This is almost the minimum requirement. You only need files which in the js and css folder.
If you remove css\ui-lightness\images when you page using ui-lightness theme you will found that there is little difference between the brightness of the tab labels.
Of course. If you did not using ui-icon, you can remove ui-icons_*.png and rules ui-icon-* on jquery-ui-1.8.17.custom.css

joomla css for menus and fonts

if any of you use joomla, could you help me locate the proper code to change for font size, globally, in the ja-purity template. I also need to adjust the top menu bar width, and the length of each individual menu item in the top bar. Thank you for assisting me locate this code.
For any properly coded Joomla template (which JA Purity is of course) you will find the CSS files in JOOMLA/templates/template name/css. In this case, there are 4 CSS files for JA Purity. Also keep in mind that some of the template is controlled by the template parameters that can be accessed in the admin my clicking on Template Manager > Ja Purity.
I find the best way to tweak the css in a Joomla template is to use Firefox with the firebug . Goes something like this.
Install Joomla / Template.
Open frontend in Firefox with firebug enabled.
Use firebug to inspect the component you want to tweak.
The CSS classes will be displayed on the right. You can edit the css right there in firebug or use it's handy file / line number links to locate where the css class is defined.

Resources