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
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 ...
1 vote
1 answer
214 views

PDF file upload only works in JCE (Joomla 3.10.6)

I'm puzzled by why I can only upload PDFs from within the editor when I use JCE. The site I'm working on is using YOOtheme Pro and if I try to add a PDF as a link in a gallery element it "...
0 votes
2 answers
95 views

Getting Editor to show on front (site) of website

I'm trying to display to users an editor in the front end of my website (in a logged in area) I have: // IMPORT EDITOR CLASS jimport( 'joomla.html.editor' ); // GET EDITOR SELECTED IN GLOBAL SETTINGS ...
0 votes
0 answers
53 views

J5. Activate Tab key and Indent in Codemirror in custom component

Codemirror v6 looks like not so easy to configure as previous versions. In my custom component I get codemirror editor with this code who use for options sintax like v5: $editor = Editor::getInstance('...
0 votes
2 answers
152 views

J5. Access editor instances in JavaScript

In JavaScript and J4, to get an editor object from the collection of objects with all editor instances running I use: let editor = Joomla.editors.instances[myEditorName]; I can see Joomla object in ...
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 ...
0 votes
0 answers
36 views

Submit an form with WYSIWYG Editors via AJAX

I'm submitting a standard Joomla form via AJAX. Only the apply task is submitted via AJAX: $js = ' Joomla.submitbutton = function (task) { if (task != "cancel") { if (...
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 ...
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 ...
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 ...
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 ...
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 ...
0 votes
0 answers
134 views

How to use emoji picker plugin from editor in Joomla in a textarea field?

I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible? It's for my chat component: https://extensions.joomla.org/extension/communication/chat/tabapapo/
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/
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 ...
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-&...
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::...
0 votes
1 answer
117 views

Front end editing, publishing and images tab have disappeared

I'm using Joomla! front end editing but the only tab available is "content". The publishing and images tabs have disappeared. They were working so I must have changed something but I can't ...
1 vote
0 answers
39 views

How can I update a Joomla form editor box contents from Javascript?

I have a form with lots of fields including editor fields that display using jce/codemirror. I have buttons that call the submitbutton.js which builds a string from other elements in the form. I can ...
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' ); $...
0 votes
2 answers
862 views

Is there a way to show tabs and spaces in Codemirror?

I can't see whether the gaps at the beginning of new lines in Codemirror (in Joomla, in my case) are spaces or tabs. Is there a way to display them?
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?
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 "...
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 ...
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 ...
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="...
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 ...
0 votes
1 answer
21 views

add Load Modulesbutton to text editor

i have created a portfolio component that use text editor , and i want add the Load Modules button unther the text editor , normaly it load the button automatickly on joomla articles .. also is there ...
0 votes
0 answers
452 views

TinyMCE doesn't show content

After updating Joomla from 3.6.0 to 3.9.15, TinyMCE doesn't work. I just don't see any content in article edit. In console I have errors in tinymce.min.js: Uncaught TypeError: Cannot read ...
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 / ...
1 vote
0 answers
137 views

JCE plugin to add custom toolbar dropdown list

I am trying to add a dropdown menu in JCE editor. The dropdown will contain a list of items fetched from database. Please find the below code: (function () { tinymce.create('tinymce.plugins....
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 ...
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 ...
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('...
0 votes
2 answers
631 views

How can I load a minimal editor in a custom component form?

In my custom component form I have a text field that I want users to have the ability to add very simple styling to. I'm thinking bold, italic and link buttons. Is it possible to create and configure ...
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 ...
0 votes
2 answers
111 views

How to bypass deny direct access to edit link

I managed to edit a file in controller to allow for the edit article link to be directly accessed if a user has a particular username. This is a core edit, but it's a local website only only my pc so ...
1 vote
1 answer
72 views

Joomla Custom-Component Select Field with Editor [closed]

I'm trying to make a dropdown box from my table (#__projectinfo) where I can choose, for example, an article and show in an editor ready-to-use, update or save. The objective is to choose an email ...
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 ...
0 votes
1 answer
153 views

Joomla editor field type text not posted when submitted

I'm working on a custom joomla module. It has a form with an "editor" type field. The fields are defined in the related xml file: <form> <fields name="main"> <fieldset name=...
1 vote
1 answer
336 views

Shortcut to insert non breaking space in TinyMCE?

I'm using Joomla and it's integrated TinyMCE editor. I would like to use a shortcut like shift+space or ctrl+shift+space to insert a non breaking space fast and simple instead of to have to click a ...
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 ...
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" ...
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'=>...
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 ...
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 ...
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 ...
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 ...
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 ...
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&...