I have a problem in my TinyMCE editor in joomla. Every time i make any changes from the editor my html code gets messed up.
I tried using a different editor like (JCE Editor), but the result is the same.
I am new to joomla so if anyone suggest me how to go about in fixing this problem
Thanks
I have got a solution for this.
Instead of using TinyMCE editor i switched to JCE Editor and followed these steps
Change the defualt setting of JCE Editor
Once inside the JCE Administration area, click on Default editor profile
Inside the Default editor profile, click on the Editor Parameters tab, and then click on the Advanced tab. Depending on which type of code you d like to save in your articles, you can choose to allow JavaScript, PHP, CSS, and XHTML. Please note that these are disallowed by default because they can be potentially dangerous to your site. It s always best to create a backup of your site before adding code like this. Don t forget to save your work after you make these changes.
Next, go to the Plugin Parameters tab, and then click on the Media Support tab. As illustrated in the screenshot below, you may also choose to display some additional elements. You can click on "Save & Close" in the toolbar when you re done. That s all the configuration that you should have to do through the JCE Editor.
You can test your changes by embedding a YouTube video into an article or Custom HTML module.
Under global configuration go to text filtering and set public to no filtering
TinyMCE (and most other Editor-Plugins) try to output/save the best possible HTML-code, thats why your HTML gets changed.
Go to "Site" => "Global Configuration" => "Text Filters" and set the appropriate filters. You might want to use a custom Blacklist by editing the 'Filter Tags'- & 'Filter Attributes'-fields. :)
answer for Joomla pre-2.0:
You can find the 'Clean code on save'-option in the settings (go to "Extensions" => "Plugins" => "Editor - TinyMCE" and go through the options on the right side).
Greetings
Related
im working on adding and modifying the content of a website, but im having multiple issues with the very basic functioning of the editor. Please keep in mind i didnt build this site myself, so i might not be aware of many things that may be obvious to you.
If left unmodified, to the user, the site shows no issues whastoever, it is I as the administrator who experiencies all these issues.
I will describe/ show the issue and give a list of the things i have tried already.
While looking at Cpanel's PHP admin app, and the htaccess file, i see the php version is 7.4. However, while using wordpress, the site health status tool warns me that im using php version 7.1.33
Im not getting the admin bar when looking at the website, it just shows a white bar with nothing else.
3.If i go to the backend editor and try to customize the template im using (called Jupiter 5) i get very few options in the side bar, it doesnt show things like header options for example. And i have no floating editor options on the site itself, i get no tools, nothing.
See image
When i go inside wordpress to "pages" and try to edit a page, the editor box shows the content with the code included or shows nothing while using the "visual composer" mode. This is how it looks
When i try changing the template, the content appears like this. A huge mess, though some editor controls show up in this case
6.I tried using plugin detective but when i launch it, and it asks for my credentials, i hit login yet it does nothing.
I tried disabling all plugins, only header and bottom show up kinda normally, the body becomes text with code like the image of point 5. I still dont get the admin bar on site.
If I, after disabling all plugins go to pages, then select any page and click "edit", the adress of the site shows im on the edit page, but the page itself is completely blank, i dont even get the wordpress bar at the left.
If I disable all plugins, then activate only a plugin called WPBakery, the body of the site stops showing text with code and actually shows most visual elements, no edit options though, except for a small text at the bottom. A weird thing about this plugin is that despite of its name, when activated, it shows up as "Visual Composer" instead of WPBakery.
So far, besides disabling plugins and testing, i have only tried Updating Wordpress, the only thing that changes is that the admin bar finally shows, but the "customization" mode remains exactly the same, useless.
Classic editor is already installed btw.
I hope someone can help me, thanks.
I am trying to change banner text of one of the web page according to the url parameter. Not sure which code should I modify. or use hook? please someone help me.
many thanks
You need to find out where that text is coming from.
Most WordPress templates that I have used allow you to change this on the admin screen (dashboard). If you log into WordPress using admin password and select Theme/Customize, you should be presented with several options that let you customize this.
There is also a Settings tab visible from the dashboard that lets you change the site name (if that is what's being displayed there).
If you cant find it in either of those, you can try to search for the text in the files system (under themes) and see what's returned.
I have a couple of questions related to building a custom theme with Wordpress.
1) If the website is made up of pages, I can use page .php to run the LOOP and retrieve content. In this case, is it OK to paste the content (of each page) using the backend of word press - I.e. paste all content and HTML markup into the 'text; . Is this a reliable way to enter content and accompanying markup into the database?
I guess the advantage is that users will then be able to edit the content themselves using the visual Tab.
Many thanks,
P
Well this not a recommended way to do it, but yes the editor is there for the same purpose. I wont be using it this way, because in my experience wordpress editor often acts weird with html. By default auto paragraphs are enabled, so everything gets in its own paragraph, even if you disable auto paragraph it still has some issues. For instance if you add html in the text tab, and then goto visual tab and switch back to html, and save the same html, this time it would be styled differently. Secondly its also not good to allow users to add html from a security POV and you cant guarentee the consitency of the website.
I would recommend using custom fields instead and fetch these custom fields in the through your theme files.
I'm using Joomla v1.5.26 and for whatever reason when I navigate to MYSITE.com/administrator/index.php?option=com_content&task=add or if I try to edit any already existing articles (or sections) I get a screen with an empty body tag.
The other pages in the administrator part seem to be working.
It seems to be the same (or very similar) problem as this: http://www.justanswer.com/computer-programming/32fo1-when-hit-new-button-article-manager-joomla.html but this is the only instance I could find of the problem, and it isn't resolved at the end of the article.
Thank you for your help.
My suggestion:
1- Try to disable the editor you are using (Set it to no editor on global settings or on the user you are trying to edit with)
2- Try to reupload components/com_content from Joomla 1.5.26 source to your website and overwrite the existing file. There might be something missing.
I'm editing an existing template in Joomla and I need to change the menu icons text. In Joomla Administrator, I cannot find the place where I can do this. So, in FireBug I found DIV container that I was searching for. But if I change the text in FireBug, my changes are obviously not saved. Now very basic question is: how can I know the name of PHP or HTML file, where this DIV container is located? Or how can I save my changes?
FireBug will only change web browsers content, it will not affect files on the server. If you know DIV's id you can search for files with this string on the server. To save changes - edit file and save - but on the server.
I use TestWrangler app (I'm on a mac) - open blank TW, click on Search, browse to target a folder to search through. I always search through a copy of my website folders on my hard drive rather than live site files. Search for the text string you're wanting to find which file contains it. Give TW a few seconds or more and it will tell you exactly which file contains the string.
http://www.barebones.com/products/textwrangler/
When you right click on an HTML element and select "Inspect with firebug", on the right hand side of the firebug screen you will see the styles applied to that element, and where it says the line number, if you just hover your mouse over it it will show you the exact location of the file.
Use a file search tool, it is included in most IDE's, if your editor doesn't have such a feature try a file grep tools like wingrep (http://www.wingrep.com/)
I just thought I'd share this as a possible 'answer' as well.
there is a joomla extension that enables you to search through your source code within joomla itself.
Here is the link:
http://extensions.joomla.org/extensions/miscellaneous/development/22858
I'm sure it will come in handy instead of going through the hassle of a complex setup on localhost.