Hot answers tagged

7

I use JCE Editor on all our sites, but we have started also installing Sourcerer by NoNumbers. This gives an easy INSERT CODE button to the JCE editor that protects it from being modified. http://www.nonumber.nl/extensions/sourcerer


6

You can use the following Javascript which will bring up a alert box asking if you want to leave the page or stay on it when you go to close a browser tab. <script> window.onbeforeunload = function() { return 'Make sure you have saved your JCE content'; } </script> If you're wondering where to add your code, you can either: Add ...


5

You can just add a view override in the template: Understanding Output Overrides http://docs.joomla.org/Understanding_Output_Overrides Component Output Types and Layout Overrides http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides The override only has to include your new CSS style modification, and the ...


5

I actually found another option: The editor field type. <field name="test1" label ="Test Field" type="editor" width="300" filter="safehtml" editor="TinyMCE"/> Using this field in my XML manifest, I'm able to add as many editors as needed.


5

What should happen is that you pass a string of comma separated values into the form field of the buttons that you do not want to appear. This gets exploded into an array here: https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/form/field/editor.php#L222 In the form field you get a JEditor Instance and in the getButtons method there it will ...


5

Every folder inside the following folder is a plugin for Tiny-MCE editor: /media/editors/tinymce/plugins/ They are: advlist anchor autolink autoresize autosave bbcode charmap code colorpicker compat3x contextmenu directionality emoticons example example_dependency fullpage fullscreen hr image importcss insertdatetime layer legacyoutput link lists media ...


5

Maybe I misunderstand your question, but you say: I copy some youtube embed code > paste it into TinyMCE editor > it appears like this and I immediately click toggle editor > it appears like this; Please note that if you paste HTML code in the regular TinyMCE window, it will be converted to HTML entities (< becomes &lt;, > becomes &gt; ...


4

These buttons are coming from the editors XTD plugins. The defaults XTD buttons are article, pagebreak, readmore, image. But there are extensions that can install their own XTD buttons, e.g Joomla Works Simple Image Gallery Pro, or NoNumber Content Templater etc.. Check in the plugin manager for the Editor's plugin to see what's there. But I think I ...


4

Try something like this: buttons = "true" | Show all buttons. hide = "article,image" | An array of the buttons you want to hide. <field name="myeditor" label ="label text" type="editor" editor="jce" buttons="true" width="450" height="280" hide="article,image" filter="safehtml" description="description text" />


4

Yes no problem at all. To do this: Go to to your Joomla! back-end, Install the editors you need via Extensions > Manage > Install, Then for each user you will have to set their editor. To do this go to: Users > Manage, from here select the user, click the "Basic Settings" Tab and select the editor in Editor field. Save and close.


3

Most probably your article editor (TinyMCE?) is cleaning up your code. This is expected behavior by default. Both <iframe> and <form> are among the tags that are removed automatically by TinyMCE. There are a couple of ways around this: Use Sourcerer, a plugin that lets you add HTML (and other kinds of code) directly inside your articles. There's ...


3

You can't display dynamic data this way through an article by default, as the editors won't process php. However, to your rescue, there are plugins for this. You can install Nonumber's Sourcerer Plugin, and now you can write php, or other code directly in your articles. It even supports some of the most common Joomla variables and Objects, which are ready ...


3

If I remember it right, JCE uses an iframe for the content. Thus, you need to get a reference to the iframe first, then access the inner document of the iframe, which will provide the innerHTML as the text you are looking for. I did this once, but unfortunately I can't acces the code until Sunday. I would start with something like this (this is how I ...


3

I had a lot of trouble with this until I realised you have to select the correct TinyMCE panel set before editing the Prohibited elements. Choose the set that is assigned to administrator and editor. [


3

Please don't do this. Justified text on the web looks horrible, and there's no legitimate reason for wanting to do this globally. If you really don't care about aesthetics, good typography or user experience then just add this to your template css: body { text-align: justify !important; }


3

What you need: Notepad++ -PC Komodo IDE -MAC or any other text editor which will show line nos. Tested on: Joomla 3.x Procedure: You need to add some external JS files to your Joomla Admin's template. These JS files are already included with your Code Mirror plugin. Admin templates are located in this directory : /administrator/templates ...


3

From how to add an iframe Log into your Joomla 3 administrative dashboard In the top menu, click Extensions and then click Plug-in Manager In the left menu under Filter, click Select Type and then click editors. In the list of results, click Editor - TinyMCE. At the top of the page, click the Basic Options tab Scroll down until you find ...


3

As far as I can tell from looking at the codebase, both end up filtering the code through JFilterInput::getInstance()->clean();, which checks the html is safe. The main difference seems to be that JComponentHelper::filterText has some additional filtering to limit the html to a bespoke whitelist/blacklist. Both should be secure. The latter may have ...


3

I ran into the same issue with a couple of Joomla instances. Did you export the local database and import in on your remote server using phpMyAdmin? There's a bug in phpmyadminversion 4.6.5.1 that places /n/r incorrect in the data when doing an export/import. Try updating to phpMyAdmin to at least 4.6.5.2 where this issue was fixed. Answer thanks to Isaan ...


3

FIXED: The culprit was a personal editor choice set in the user profile section. I changed this to Editor - None, resubmitted the disobedient code (without comment tags), and it worked like a charm! Clearly the user who created the original article did not use the TinyMCE, but my account had that selected. I did not create the user account I'm using--...


2

There are some secret settings for JCE. I know the following setting stops &nbsp; being added to empty divs, maybe used to clear floats, which causes line-height issues when rendered: In the Editor Global Configuration, add: remove_div_padding:1 to Custom Configuration Variables. I would expect there are more that can control any aspect of the editor....


2

Have you seen: https://yoonique.net/index.php?option=com_zoo&task=item&item_id=35&category_id=16&Itemid=118 I haven't used it myself, so can't comment on it's usefulness but I have used one or two of their other products and they are great. He also has this plugin which converts Markdown Extra. https://yoonique.net/index.php?option=com_zoo&...


2

The question by "GDP" was "How does one get to the edited text that the user wants to save, in order to be posted?. "elk" got me started on the right path but I resorted to jQuery to actually get the edited text. This is what I did: jQuery("#Array_ifr").contents().find("body").find("p").html(); Where "Array_ifr" is the id of the iframe the JCE editor ...


2

I understand what you're trying to accomplish, but I don't think you'll find a WYSIWYG that will let you copy text, then re-paste it with the html intact and be confident it will not break. All it takes is for your user to paste the text with their cursor in the wrong spot by one character, and the whole thing goes to pot. Even using a templater, like ...


2

The mod-custom module seems to be using the code <customContent /> to add the editor. It's located right before the <files> declaration in the XML file, not sure if it can be used elsewhere.


2

If it's simply syntax highlighting and pretty print for HTML, then Codemirror would be best for you. If did find a plugin called Editor Switcher than allows you to switch whilst editing. Once installed, enable the plugin. Then go to your Joomla Global Configuration and set the default editor to Editor Switcher. Note, that before switching, please save ...


2

The current version of TinyMCE (v4.4.3) now seems to have this option enabled (see below).


2

If you are wanting to add in the additional editor features like images and whatnot there is more to it that just added the js files. Personally I would recommend using Joomla's native method of displaying the editor, this is gonna give you the best results and all of the features you want. It should also work with whatever your default current editor is. ...


2

Depending on the Editor there are several ways to extend the editor in Joomla — I'm going to assume you're talking about editors-xtd plugins. These are the buttons found below the main editor area. There is a shortage of documentatoin on creating them so, as suggested, the best bet will be to look at existing editor extensions — I would start with the ...


2

If you want to use external images for intro or full article image, then you can just paste the image's url in that field. Similarly, if you want to use external image inside your article body, you can use the insert/edit image button of the editor and paste the url of the image in the image source field. However, although possible, it's not a recommended ...


Only top voted, non community-wiki answers of a minimum length are eligible