Call me old fashioned, but there is nothing I can do but only to use the old version of Tiny MCE, which is 2.1.
So, what I'm trying to do is to add a "download" attribute to tag, after I open HTML editor I type this attribute, when saving it simply disappears. There is no official documentation to this old version on the official site. The new ones doesn't mention anything about this feature at all. overall editor look. code editor look
Also, I tried to add "download" in the extended valid elements configuration:
extended_valid_elements: "code[class|dir ,however no success as well.
Did anyone by any chance faced the same problem?
Could use a little bit of help.
Well, if anyone ever encounters the same problem, which I highly doubt, you would need to open tiny_mce.js file, and on the line 1928 there will be "A : "id|class|style|title|download" ", this is the place, where I added "download". Afterwards I was able to add this attribute in the HTML code editor.
Related
As you can see below, the icon (in the right corner) is not displayed properly.
Usually, it is an arrow down, as you can see in the showcase of BootsFaces.
My <b:panel> looks like:
<b:panel title="Beiträge (1)" collapsible="true"look="info">
How can I display the correct icon?
I am not using any specific theme and I am using BootsFaces 0.7.0.
We've had a lot of trouble with this. Most likelely the Glyphicons rource file can't be loaded.
Make sure you've added a <h:head></h:head> tag (even if it's empty). Do not use the HTML tag (<head />).
Check the URL pattern of the web.xml. Many tutorials recommend to put the JSF files into a virtual folder, such as <url-pattern>/pages/</url-pattern> . Don't do that. There's nothing wrong with simple patterns like <url-pattern>*.jsf</url-pattern>. By the way, this is the default, so you can safely omit the url-pattern altogether.
If that fails, add the CombinedResourceHandler of OmniFaces. This always does the trick for me.
Check the URL in your browser. Maybe you entered localhost:8080/index.xhtml instead of localhost:8080/index.jsf?
If you're still stuck, open an issue on the BootsFaces GitHub repository (https://github.com/TheCoder4eu/BootsFaces-OSP/issues). But first read https://github.com/TheCoder4eu/BootsFaces-OSP/issues/157 - your problem is probably already fixed there.
I've just upgraded from CKEditor 4.4.4 to CKEditor 4.5.2 and it seems that the source code formatting is lost. This is also the case with all demos on the official case eg. main demo page.
It used to look like this (nice formatting, coloring):
And now it looks like this:
Does anybody know if I need a plugin or if it's a bug?
CKEditor has never provided syntax coloring in source mode.
Previously you have used some third party plugin, so you must add it again.
I want to use following tag
<h4><span class="icon-phone"></span></h4>
but TinyMCE from Joomla always deletes it, when i save it.
I find the solution that i have to add span[*] to "Extended Valid Elements" in Options from TinyMCE in PluginManager. but it doesn't work. It always delete it again and again. I searched here for a while and found some articles which was similar to my problem but doesn't solve it.
I use Joomla Version 3.3.6 and the plugin is 4.1.2.
Hope somebody can help.
Best Regards,
Dennis
Welcome to TinyMCE, my most hated editor ever.
I've had the same problem multiple times and I believe it's because the editor expects content within the element. So try the following:
<h4><span class="icon-phone"> </span></h4>
is simply a non breaking space
go to: Joomla! administration - Extensions - Plugins - edit Editor - TinyMCE
Set the following parameter:
Extended Valid Elements: span[class|style]
This works for me in Joomla! 3.5 (plugin version 4.3.3)
I'm running the current JCK as the default editor on Joomla 3.2 with PHPCode 2.5 and I have the JCK option to convert HTML entities turned off as well as the option to force simple '&' turned on.
In this configuration I can create and edit articles and custom HTML modules containing PHP just fine... the syntax highlighting, etc., all works as expected. I can switch back and forth between WYSIWYG editing mode and SOURCE editing mode and everything remains as I edited it.
However, whenever I save the article/module the '<' and '>' characters in the PHP code have all been converted to their corresponding '<' and '>' HTML entities and the PHP code won't run when loaded on the site (for the obvious reasons).
I have searched high and low and can't figure out what setting I'm missing, or what extension I need, to be able to fix this so I can execute custom PHP in my articles/modules.
I presume the same would be true of javascript since it, too, uses these symbols in the source.
Anyone?
EDIT: For the record, I was able to switch to the RokPad editor and save the PHP that way without it breaking. However, I know I should be able to do this directly inside JCK. I used to be able to do this in Joomla 1.6, I just can't seem to make it work in Joomla 3.
Try this,
Check this extension this may help or another methods you can check
How to include html or php codes into joomla article
Hope its helps..
I'm working with Liferay version 6.1.20 but sadly in this version the ckeditor 4.0 isn't implemented yet.
Is there a way to manualy upgrade CKEditor? or is it a job that i shouldn't start because it's to much work?
I would like to manualy update the CKEditor because the plugin that i'm hooking on isn't compatible with older versions of CKEditor.
I have been looking around on the web. But there isn't any information present as far as i know. I would be nice to know if it's word trying?
Ckeditor 4.0 is included in the trunk (6.2 M4) (this can be seen in the post from Juan Fernández in the liferay forum. Don't know if it will be part of 6.1 GA3 due shortly. I'm not sure how complex it is to upgrade CKEditor. You may want to see the github pull request mentioned in Juan's post.
It looks like that Replacing the ckeditor.js file and adding all the new required files is the first step of replacing the ckeditor. Besides that it's important to change the CKeconfig.jsp and remove all the old configurations. Toolbar settings can be made. These don't seem to cause any problems.
If your working with the .on method please notice that the contentDom event is fired 2 times. Once on loaded and once when the editor is ready. I checked editor.status === "ready" to prevent this. Because it is attaching the listeners when it's not ready.. Because of this the won't work.
=== Edit ===
Still having problems. But now with the save as draft action. It's saving the data but without the Html changes i have made.. I'm making span's with special attributes. but the editor won't save them..
== Edit 2 ==
The problem was a missing CKEDITOR config tag. config.allowedContent = true; (See edit for the problem)