Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [editor]

For questions related to the available content editors in Joomla! like TinyMCE, JCE, JCK,CKEditor...

Filter by
Sorted by
Tagged with
9 votes
4 answers
3k views

JCE / TinyMCE - Keeps attempting to Fix Valid & Invalid HTML

Of all the Joomla editors we've used, JCE has best suited our purposes and clients. But there's a few problems with the editor that can cause problems when we code something, then it's toggled to ...
Faye's user avatar
  • 1,348
7 votes
5 answers
2k views

How to retrieve the CHANGED text from Joomla Editor?

I have a page that allows the user to edit the intro text of a particular article, and I'm using this code to allow them to do so: $editor = & JFactory::getEditor(); $params = array('smilies'=>...
GDP's user avatar
  • 7,715
7 votes
4 answers
3k views

How do I preview an article in Joomla editor?

How do I preview an article? In Wordpress, there is a Preview button which pops up a window with how the page looks. In the Joomla editor page, I see this, with no links to a preview. I searched and ...
Chloe's user avatar
  • 303
6 votes
2 answers
4k views

Editor stripping iframe

Yes, another question about the stripping of HTML tags (this time TinyMCE). Joomla 3.4.1 / TinyMCE 4.1.7 This should be very simple, however due to the number of comments and questions/answers I see ...
jonboy's user avatar
  • 3,603
6 votes
4 answers
2k views

How do you specify to show only certain editors-xtd buttons on the editor form field type?

I am creating a custom component and in my form I am using the editor form field type. Here is the documentation: https://docs.joomla.org/Editor_form_field_type It seems that no matter what value I ...
Zachary Draper's user avatar
6 votes
2 answers
426 views

Markdown editor like on stackexchange

As a regular user of stackexchange, I really like the markdown editor we have here. With some additional buttons it is really fun to write articles. On my Joomla page on the other hand, I usually use ...
halirutan's user avatar
  • 379
5 votes
2 answers
2k views

How to add a WYSIWYG editor to my module

I'm developing a small Joomla plugin, but I can't figure out how to add a field that uses the normal Joomla article editor, and not only a text field. I have a field like this: <field name="...
johanpw's user avatar
  • 13.3k
5 votes
2 answers
763 views

Is there a way to have the article edit box stretch the full width of the screen in Joomla 2.5?

When editing articles with EDITOR set to NONE, is there a way to have the article edit box stretch the full width of the screen (in Joomla2.5)? I know you can resize the width manually, but I'd like ...
TryHarder's user avatar
  • 2,340
5 votes
1 answer
521 views

How to make my Editor plugin (type: editors-xtd) survive after updates?

I have a project that I am writing a component, module, and editor plugin for. I have managed to piece together a rudimentary plugin that works with TinyMCE (at least) which: Displays a custom ...
mickmackusa's user avatar
  • 4,801
5 votes
2 answers
515 views

What are the JS dependencies of the Joomla frontend editor?

The Problem I'm trying to implement a functioning frontend editor within my Joomla template which has been developed in-house at my company. For the most part it works - a user can make basic text ...
Candlejack's user avatar
5 votes
1 answer
753 views

How to properly display editor instance in Joomla 4

I'm currently updating my component to work in Joomla 4, and I've run into an issue with editors. I previously used this: $editor = JFactory::getEditor(); $editor->display('text', $this->item-&...
Chaosxmk's user avatar
  • 338
5 votes
1 answer
1k views

Unpublish, Trash or Delete buttons in the Frontend

I want to create some of these buttons in the frontend List view. I added checkboxes to the table and used the Using_the_JToolBar_class_in_the_frontend tutorial to put Save and Cancel buttons. Also ...
mortalis's user avatar
  • 375
4 votes
2 answers
486 views

Where can I find list of the available Joomla-WYSIWYG-Editor buttons etc

I'm currently developing a component and I'm using a form. I'd like to give the user a limited access to the functionality of the editor. According to http://docs.joomla.org/Editor_form_field_type I ...
Marc T.'s user avatar
  • 267
3 votes
4 answers
4k views

How to display user profile fields on an article?

When using the TinyMCE editor, how can I display the username at the top of an article?
Chet's user avatar
  • 31
3 votes
5 answers
994 views

Youtube Iframe tag stripped on saving

For Joomla 3.6.2, Trying to embed video - but iframe tags and the code in it are stripped on saving Did following 1 Check and removed iframe from prohibitor element in Tinmce editor in plugin ...
Ruchika's user avatar
  • 415
3 votes
2 answers
1k views

Make CodeMirror highlight PHP syntax

CodeMirror by default only highlights mixed-html syntax (i.e HTML, CSS, and Javascript) in Joomla. Many of us use custom plugins to run PHP inside modules and articles, but CodeMirror doesn't ...
saibbyweb's user avatar
  • 2,289
3 votes
2 answers
864 views

Divide an article into several divisions by adding <div> tags

I am new to Joomla and I want to develop an article in joomla with several divisions in it like we dividing a normal HTML page by adding tags. I tried to add some CSS code to the article with the ...
Shan Chathusanda Jayathilaka's user avatar
3 votes
1 answer
198 views

Media field use local or remote file

I have looked all around for the use of the media field, and I see that is to load local files only. I need to use it to load not only local but also remote images. I notice that if I put a URL to ...
user3477054's user avatar
3 votes
2 answers
595 views

Switching the editor while editing an article?

Is it possible to switch the current editor while I am editing an article? I have tried switch-editor and that works nice, but when I use it while I am editing an article, then I still need to close ...
lanoxx's user avatar
  • 345
3 votes
1 answer
2k views

Joomla Editor Form Field in content plugin - How to load editor-xtd?

On Joomla 3.2.3, I added some custom fields to core components using a plugin (like this). It's working fine but I'd like to add the editor-xtd buttons to the customs editors added. So my question is ...
GhosToM's user avatar
  • 33
3 votes
1 answer
404 views

Joomla keeps wrapping content with user-visible p tags

I have observed the same behavior when installing Joomla from multiple so called Quick Start Packages embedding themes and plugins. Right now, I have installed, Basic Joomla running on a production ...
Samuel's user avatar
  • 31
2 votes
2 answers
921 views

Are you sure you want to navigate away from this page? Browser popup to avoid accidental tab closure while editing

Is there a way to force my browser (Chrome) when I edit (JCE) an article on frontend to display a message preventing accidental tab closure or redirection? I often make that mistake on to close a ...
JinSnow's user avatar
  • 478
2 votes
3 answers
1k views

How to create a syntax highlighter for Joomla

What is Best syntax highlighter for Joomla? Geshi is not working fine in my site. How to integrate this style of syntax in Joomla 3 site? http://alexgorbatchev.com/SyntaxHighlighter/
user9534's user avatar
2 votes
2 answers
72 views

How to stop Joomla 2.5 from disabling PHP

I need to stop Joomla from converting PHP code to a comment (or otherwise disabling it). I copied a working page with a basic [directory listing] function, and the duplicate wouldn't work. I am ...
zedmelon's user avatar
  • 151
2 votes
3 answers
2k views

Enable 'Title' attribute for images with TinyMCE Editor

When inserting an image in an article using TinyMCE editor's, the popup that appears only has options for Image Source and Alt text but no way to add a title for the image. It seems like there is a ...
sifu's user avatar
  • 1,105
2 votes
1 answer
113 views

403 error front end editing when HTML comments are in the content

I have a site I'm troubleshooting at the moment where articles won't save via the front end and return a 403 error when you either Save or Cancel editing. After whittling down potential causes, this ...
Patrick Jackson's user avatar
2 votes
1 answer
414 views

"/r/n" added between paragraphs in every editor field when uploading website

I currently develop my websites on a synology nas web station, but when I upload my website online, all editor fields (articles, modules and also my custom components) are modified with an added <p&...
Kitase88's user avatar
  • 977
2 votes
1 answer
145 views

Components > Paypal Button not saving properly, neither iframe

I've tried to insert a paypal form + button on a component's type description and once I save a part of the code is gone. Before <form action="https://www.paypal.com/cgi-bin/webscr" method="post"...
aerish's user avatar
  • 229
2 votes
1 answer
237 views

Add a custom layout for editor-xtd popup

Another post partially answered my question, but I want to know if and how would be possible to make use of addLayoutPath and setLayout in my editor-xtd plugin. Here's my plugin so far defined('...
thednp's user avatar
  • 415
2 votes
1 answer
738 views

Getting Error "Call to undefined method Joomla\CMS\Editor\Editor::getContent"

I am upgrading one of my component to support Joomla 4 and I am getting this error in webpage Call to undefined method Joomla\CMS\Editor\Editor::getContent The code that throws this error is in ...
Amit Ray's user avatar
  • 237
2 votes
3 answers
3k views

Set up Default Upload path for uploading image in Joomla Default Editor

I have 3 components related to newtoys, usedtoys and refurbishedtoys in which different article post and details been submitted The Image folder has 3 subdirectories 1 image / newtoys 2 image / ...
Ruchika's user avatar
  • 415
2 votes
3 answers
2k views

Height and Width are not considered for an editor Form Field

The XML code I have for the editor form field as <field name="note_desc" type="editor" filter="safehtml" label="Description" required="true" height="150" /> Irrespective of the ...
Malaiselvan's user avatar
  • 2,731
2 votes
2 answers
2k views

how to prevent JCE from removing/replacing divs on copy/paste

I have tried so many things and I still can't make this work. In Joomla 2.5.20, with JCE 2.3.4.4, on a Mac, I have the following scenario: In the editor, I have a set of divs, and if I select them (...
jackJoe's user avatar
  • 865
2 votes
1 answer
282 views

Disable the save warning on TinyMCE editors

I've programmed a modal with a TinyMCE editor inside, where it's value is saved via ajax, but when leaving the page there's still the warning Changes you made may not be saved. Is there a function or ...
Chaosxmk's user avatar
  • 338
2 votes
1 answer
145 views

How to enable Alternative Layout in the frontend editing

I'm trying to enable user to choose article alternative layout in the article frontpage editing form. I add this code below to [root]/templates/protostar/html/com_content/form/edit.php <?php echo ...
webchun's user avatar
  • 2,418
2 votes
1 answer
2k views

How to wrap selected blocks inside a custom html tag in article editor using TinyMCE

I have a situation where sometimes a block of paragraph texts or one single image needs to be wrapped in a special div. I am trying to figure out a way to do it without having to edit the HTML which ...
sifu's user avatar
  • 1,105
2 votes
1 answer
59 views

Not proper output in Joomla editors while using CSS

My Joomla editors are not working properly. When I save any HTML in editor, it changes its inline CSS or show it without CSS. I should also mention that CSS is not blocked in the joomla backend in any ...
Pooja Thakur's user avatar
2 votes
0 answers
57 views

TinyMCE editor assuming same tag and class after added embedded iframe

I created a plugin that allows for the embedding of iframes. The iframe is wrapped with a <div> that uses Bootstrap's ratio classes to keep everything responsive to an acceptable degree. The ...
Chaosxmk's user avatar
  • 338
1 vote
1 answer
89 views

Different WYSIWYG editors for each user?

Title says it all, is it possible to have a different editor for each user within Joomla? For example, User 1 uses the TinyMCE editor while User 2 uses RokPad editor. Is this possible? I'm ...
L84's user avatar
  • 127
1 vote
1 answer
258 views

Use Text-Editor in UIkit Modal (Module Backend)

For a new Project i would like to have an editor instance inside a modal popup (click on an object to add / edit details). I have my Custom Field that loads an editor like so: $editor = JEditor::...
Marco's user avatar
  • 685
1 vote
1 answer
95 views

Frontend editor with save image uploading methods

I am trying to build a forum where users are allowed to upload and insert image into their posts. Surprisingly, this is not as easy as it seems. TinyMCE when used on frontend doesn't have the "...
shenkwen's user avatar
  • 1,389
1 vote
1 answer
863 views

TinyMCE editor loaded through AJAX not working

I've built a form that calls for an editor to be loaded through AJAX, but when I insert the fetched contents I get only a <textarea>. If I hit the toggle editor button, then the editor gets ...
Chaosxmk's user avatar
  • 338
1 vote
1 answer
22 views

No Documentation about onCustomEditorButton

I want to add a custom button to the TinyMCE editor. But the documentation about this feature is non-existsten as you can see here: https://docs.joomla.org/Plugin/Events/Editor#onCustomEditorButton ...
Cowboy_Patrick's user avatar
1 vote
2 answers
166 views

Joomla 3 - How to set content of the editor field?

I have a editor field which I would like to populate with HTML content: <fieldset name="basic"> <field name="Code" type="editor" label="Code" description="" width="300" filter="safehtml" ...
Sergiu Tripon's user avatar
1 vote
1 answer
499 views

Joomla 3.6.2 won't save HTML Tags

After upgrading to Joomla 3.6.2 I cannot save a Custom HTML module or Article with any tags. Add a link via the Tiny MCE Editor, stripped out on save. Add through HTML, stripped out on Save. Try using ...
Kray's user avatar
  • 13
1 vote
2 answers
2k views

Any “Link Preview” (like the facebook feature) in joomla editor?

I'm writing articles commenting diverse sources from the web (youtube video/news articles, blogs...). To show which article I'm commenting I'm using an image (thumbnail + some text). So my article ...
MagTun's user avatar
  • 976
1 vote
1 answer
48 views

Show article title in browser tab of article editor (Joomla 4)

When editing articles in Joomla 4, the browser tab shows "Articles: Edit - [site name]". This means that all articles show the same text in the browser tab, which is not very helpful if one ...
Bruce Button's user avatar
1 vote
1 answer
173 views

Display an editor in the front end using a module

I'm trying to display an editor using a module in the front end. I want visitors to be able to edit and create articles but from a module not a component. I've tried: jimport( 'joomla.html.editor' ); $...
user1616338's user avatar
1 vote
1 answer
922 views

How to fix problem with relative path Joomla for a module using editor form field?

I have created one module in Joomla and added one form field of the type editor inside the manifest-XML. <field type="editor" name="myeditor" default="" buttons="true" hide="...
astridx's user avatar
  • 449
1 vote
1 answer
67 views

Joomla 3 - Text area in Editor field breaks the Admin section

I have an editor field with some HTML code in it. The HTML code consists of a form and one of the form fields is a text area. When this code is added to the editor field, the Admin section of the ...
Sergiu Tripon's user avatar