Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
31 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 ...
user avatar
  • 278
1 vote
1 answer
41 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 "...
user avatar
  • 73
2 votes
1 answer
70 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-&...
user avatar
  • 278
1 vote
1 answer
114 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::...
user avatar
  • 483
0 votes
1 answer
37 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 ...
user avatar
  • 1,829
1 vote
0 answers
19 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 ...
user avatar
  • 128
0 votes
1 answer
29 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 ...
user avatar
1 vote
1 answer
51 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' ); $...
user avatar
0 votes
2 answers
389 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?
user avatar
  • 161
1 vote
1 answer
60 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 "...
user avatar
  • 1,369
1 vote
1 answer
404 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 ...
user avatar
  • 278
0 votes
1 answer
20 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 ...
user avatar
0 votes
0 answers
337 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 ...
user avatar
  • 1
1 vote
0 answers
93 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....
user avatar
  • 1,365
1 vote
1 answer
418 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="...
user avatar
  • 354
1 vote
1 answer
21 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 ...
user avatar
2 votes
2 answers
44 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 ...
user avatar
  • 151
2 votes
1 answer
189 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('...
user avatar
  • 395
3 votes
1 answer
322 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 ...
user avatar
  • 31
2 votes
1 answer
256 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 ...
user avatar
  • 237
0 votes
2 answers
538 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 ...
user avatar
  • 173
0 votes
2 answers
66 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 ...
user avatar
5 votes
1 answer
447 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 ...
user avatar
  • 4,403
0 votes
1 answer
141 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=...
user avatar
1 vote
1 answer
46 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 ...
user avatar
1 vote
2 answers
129 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" ...
user avatar
1 vote
1 answer
64 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 ...
user avatar
1 vote
1 answer
255 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 ...
user avatar
  • 11
7 votes
4 answers
2k 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 ...
user avatar
  • 293
2 votes
1 answer
408 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&...
user avatar
  • 967
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/
user avatar
0 votes
1 answer
142 views

Which Filter should be used for Editor

For Form Editor xml, should we use filter="safehtml" or filter="JComponentHelper::filterText" Pl advise - which is better filter and safe
user avatar
  • 375
3 votes
5 answers
943 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 ...
user avatar
  • 375
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 highlight ...
user avatar
  • 2,269
1 vote
0 answers
524 views

Using CodeMirror editor in custom component

I am trying to use CodeMirror as the editor for a field inside a component I am developing. I have specified the editor as codemirror in the form.xml file but I get a javascript error on the page: ...
user avatar
  • 133
1 vote
1 answer
468 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 ...
user avatar
  • 13
0 votes
1 answer
223 views

How to globally justify text in multiple existing articles on a joomla 3 site?

I am trying to universally apply text justification to a number of existing articles. Is there some way to do this globally, or for all existing articles or do I have to go through the existing ...
user avatar
  • 537
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 / ...
user avatar
  • 375
1 vote
1 answer
135 views

How to change size of editor

I am trying to change size of editor Code :- <field name="description" type="editor" class="editor" label="COM_CPEVENT_TITLE_DESCRIPTION" labelclass="cpevent-label ...
user avatar
1 vote
1 answer
269 views

Joomla editor not showing image, read more and insert module tab

Using below code to display editor $editor =& JFactory::getEditor(); $params = array( 'smilies'=> '0' , 'style' => '1' , 'layer' => '0' , 'table' => '0' , '...
user avatar
  • 375
1 vote
1 answer
88 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 ...
user avatar
  • 127
3 votes
1 answer
175 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 ...
user avatar
0 votes
1 answer
802 views

How do I create an Editor Add-In?

I've searched around, but I can't find how to do this. I'd like to add an extension to the wysiwig editor in Joomla. I'm writing a calendar plugin, and I'd like to have a dialog that would help the ...
user avatar
0 votes
1 answer
1k views

Animated Gif in Joomla

I have an animated gif that I was looking at putting into a Joomla Module. It is an icon that as you hover over it the icon changes. Built in Fireworks, when I pull it up on an html page it works ...
user avatar
1 vote
0 answers
56 views

How to use handler: 'string' in joomla modals

Im looking for some examples of how to use {handler: 'string' ...} for joomla modals, as used in editors-xtd buttons plugins $button->options = '{handler: 'iframe' ......}'; but I want to use: $...
user avatar
  • 11
5 votes
2 answers
483 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 ...
user avatar
2 votes
3 answers
1k 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 ...
user avatar
  • 1,095
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 ...
user avatar
  • 3,501
3 votes
2 answers
573 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 ...
user avatar
  • 345
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 ...
user avatar
  • 2,651