Questions tagged [tinymce]

TinyMCE is a web-based JavaScript HTML WYSIWYG editor control available as open source and a cloud-based API. Use this tag for questions regarding the usage of TinyMCE and its integration into CMS and other web based applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

Adding TinyMce EDitor in Magento 2 through Phtmls

<script type="text/javascript"> require([ 'jquery', 'mage/adminhtml/events', 'mage/adminhtml/wysiwyg/tiny_mce/setup' ], function (...
Syeda's user avatar
  • 13
2 votes
2 answers
727 views

Magento 2.4.5 TinyMCE 5 toolbar configuration to remove plugins

I want to configure Tinymce 5 toolbar plugins. till now i have tried below things. app/code/VendorName/CmsEditor/etc/adminhtml/di.xml <?xml version="1.0"?> <config xmlns:xsi="...
Ronak Chauhan's user avatar
0 votes
0 answers
133 views

Magento 2 : Insert image or select image not load -blank page

Do not be tired I noticed today that when I want to put a photo in the product and click on the image button, the page does not open and a white page opens. Can you advise where the problem could be? ...
P00ZHAN .'s user avatar
2 votes
1 answer
623 views

Error adding images with Wysiwyg editor

We have Use Static URLs for Media Content in WYSIWYG set to No. And if we insert images with the "Insert Images..." button when the wysiwyg editor is hidden, it works. It inserts something ...
sadlyblue's user avatar
  • 173
0 votes
2 answers
1k views

M2 - TinyMCE4 JavaScript disappear after switch to TinyMCE and back to HTML editor

I am using the TinyMCE to add content to CMS pages and static blocks. With TinyMCE editor disabled I add HTML and javascript code. For example <h2>What Can JavaScript Do?</h2> <p id=&...
panosdotk's user avatar
2 votes
0 answers
71 views

Add new plugins to tinymce 4

Does anyone know a simple tutorial on how to add plugins to tinymce 4 based on magento 2.4. The most stuff i found out there is outdated or missing alot of informationen
Driton Cazimi's user avatar
0 votes
0 answers
293 views

How to create template for WYSIWYG editor magento 2

I have problem with template in wysiwyg editor on admin page. In Catalog > Products > Content tab we have wysiwyg editor, but I'm confused were I need to create templates for selecting. It ...
RickeyF's user avatar
1 vote
0 answers
240 views

Magento2.3 Admin error of tinymce

I have installed https://github.com/pavelleonidov/magento2-tinymce4 Still, getting admin error Failed to load resource: the server responded with a status of 404 () require.js:141 Uncaught Error:...
Arjun's user avatar
  • 3,556
1 vote
1 answer
254 views

How to create custom plugin for TinyMCE 4

I'm trying to add ability to create custom forms with TinyMCE 4 but can't understand how to do it properly. I should create my custom plugin and then connect it to editor, but can't find any useful ...
caiiiok254's user avatar
1 vote
2 answers
870 views

IFrame got lost on save using WYSIWYG (TinyMCE) - Magento 1.9.4.4

Embedding video content is possible only using a simple text editor. Using WYSIWYG dialog data is serialized in the tag which is showing blank white space on the product page. If IFrame is inserted ...
Jure's user avatar
  • 11
1 vote
1 answer
267 views

Magento2 - How to override magento2-base adminhtml JS files?

I want to override vendor/magento/magento2-base/lib/web/tiny_mce/tiny_mce_src.js file. I know how to override Magento core module files and I've tried that, but it's not working. Is there any ...
AjayKr's user avatar
  • 145
1 vote
1 answer
152 views

Magento 2.3.1, where's tinymce setup.js?

In magento 2.3.1, installed on aws lightsail using bitnami. I'm trying to disable tinymce from inserting <p> tags, and the solution that many agree with is https://stackoverflow.com/a/26396255/...
Lynob's user avatar
  • 805
1 vote
1 answer
869 views

Uncaught Error: Script error for: tinymce in Magento 2 Admin backend

I am facing this error in the admin panel. Due to this error my admin panel menus such as order, customers are not loading. It loading forever. Kindly help me to solve this issue. Uncaught Error: ...
Kowsigan Atsayam's user avatar
0 votes
0 answers
335 views

How to customise WYSIWYG editor in admin form - Magento 2

I need to add directionality : 'rtl' to WYSIWYG editor used in all admin forms (Product create/edit, category form). How can I configure TinyMCE editor since the instruction provided here is not ...
Vinoth Kumar's user avatar
0 votes
0 answers
61 views

Magento2 - Custom module with tinymce does not show the image source correctly?

I have added tinymce on my magento2 custom module but the image on front end doesn't show. On inspect element the source of image is like this src="{{media url="wysiwyg/10ux0018sa.jpg"}}" If I use ...
user avatar
1 vote
1 answer
1k views

Can't upload video form wysiwyg

After clicking insert/edit embedded media in the editor (wysiwyg) in magento admin, appears an error in my console. Indeed I can upload a video, but I can't insert it to my page. it says : Uncaught ...
EshaRamady's user avatar
2 votes
2 answers
2k views

Magento 2 error in [unknown object].fireEvent(): event name: tinymceSetContent error message: Cannot read property 'serialize' of undefined

We are using a magento 2.2.4 version and recently installed an extension pavelleonidov/magento2-tinymce4 to our site to upgrade the editor to tinymce4. Now we are facing an error message at the ...
Kaushik Kumar Roy's user avatar
1 vote
0 answers
110 views

Magento 2 TinyMCE4 issues

I am using the Magento 2.2.6 version and I have added the https://github.com/pavelleonidov/magento2-tinymce4 Extension but into the Editor Font Family, Font Size, Line Height ..Etc Options is Not ...
Hardik Makwana's user avatar
4 votes
2 answers
490 views

Magento 2 : how to use TinyMCE v4 in Magento 2.2.6?

I want to use TinyMCE Editor Version 4 in Magento version 2.2.6 Which are use in magento version 2.3.1. If any one have solution then Pleas Provide me.. in place of
Bhavesh Prajapati's user avatar
3 votes
0 answers
258 views

Magento 2.3.1 CE Tinymce Error

We have upgraded Magento from 2.2.3 CE to 2.3.1 CE successfully. But we are facing few issues with the Tinymce js from admin end product edit page and cms pages etc.. when using Show/Hide Editor.. ...
Nagaraju Kasa's user avatar
1 vote
0 answers
392 views

Magento 2.3 TinyMCE V5

Need to use latest version of TinyMCE V5 with Magento V2.3. I tried to update tinymce js to latest version but its doesn't works at all after update. What are steps are required to integrated ...
Rakesh Gangani's user avatar
3 votes
1 answer
607 views

Magento 2.3.0 TinyMCE removes anchor tag href suffix when used with {{store url=''}}

I am trying to add category link in the CMS block. <ul class="list-unstyled"> <li><a href="{{store url=''}}test-collection.html">Test Collection</a></li> </ul> ...
user79969's user avatar
2 votes
1 answer
1k views

TinyMCE4 <style> tag not showing in editor

I am using TinyMCE4 in my Magento admin panel. I want to allow <style></style> for my CMS pages and blocks while editing. I am able to add <style> in my CMS pages and Blocks but once ...
Jaimin Sutariya's user avatar
1 vote
1 answer
259 views

Magento 2.3 modify link plugin in WYSIWYG TinyMCE4

In Magento 2.3 i'm trying to modify the link plugin to add a field to select a class for the link. I had something like this in Magento1 : * I wish to have the same here in Magento 2.3 : I tried ...
Taschert's user avatar
  • 559
4 votes
0 answers
867 views

Magento 2.3.1 not loading correct javascript files (tinymce)

I've upgraded from Magento 2.2.6 with Theme Ves Fresh 2. I have tried to clean all caches delete static folder and restart Varnish, but had no luck so far. The errors include: GET https://shop....
nicoj's user avatar
  • 41
2 votes
1 answer
1k views

Magento editor making code disappear

In my Magento admin panel, some of the codes are mystically getting disappeared. When I put this code in the editor <li class="level1 mmegamenu-644"><a class="mobile-click-anchor" ...
summu's user avatar
  • 837
9 votes
3 answers
4k views

TinyMCE Issues in Magento 2.3

I'm having some issues with TinyMCE, which is causing the editor not to work on CMS pages and causes products not to load when attempting to edit them. When these issues are happening, I see this in ...
brackfost's user avatar
  • 1,010
1 vote
0 answers
80 views

TinyMce Magento2 2.3 Source Code Symbol / Setting

With the 2.3 version of Magento2 the TinyMce Editor lacks the possibility to edit the source code. how can I activate this setting with the tinymce editor
berndpeter's user avatar
3 votes
1 answer
1k views

Magento 2 CMS page Editor not showing

I am working on magento 2.3.0 When I try to edit a cms page on the admin, the content section is blank, with console error that tinymce is missing or 404. please see attached screenshots.
Local's user avatar
  • 31
8 votes
2 answers
9k views

Magento 2.3 - TinyMCE4 Toolbar and Plugin Configuration

Updated to Magento 2.3 which includes the TinyMCE v4 editor, but the default layout does not include options like "Color Picker" or "Code". How should I appropriately modify the tinymce.init config ...
Mike Dubs's user avatar
  • 506
2 votes
1 answer
837 views

Magento2 : Using RequireJS module conditional of whether it exists

It is possible to use RequireJS to inject some modules into a custom script, for example: define([ 'jquery', 'tinymce', 'Magento_Ui/js/modal/modal' ], function($, modal, tinymce) { "...
Ynhockey's user avatar
  • 265
3 votes
1 answer
1k views

Programmatically create a wysiwyg editor for frontend magento 2.3

I don't see any examples in frontend of magento for this case. Wonder how to add editor field from php class instead template When try to call wysiwygConfig->getConfig() in my block class i got error ...
mrtuvn's user avatar
  • 3,263
2 votes
0 answers
468 views

How can I make widgets show properly in tinymce in magento 2.3?

I'm trying to add the tinymce wysiwyg editor in a custom field and make it look like in CMS pages however the widgets that I insert appear with an error image X Any idea how to fix this issue? I ...
gabtzi's user avatar
  • 636
2 votes
0 answers
270 views

Magento 2.3.0 unable to insert images in tinymce content

I notice that I couldn't insert images when adding products in tinymce content part. When I click on Insert Image button, I saw error as image below I granted access to /media directory 777. I ...
noobvie's user avatar
  • 21
0 votes
1 answer
1k views

WYSIWYG Editor Insert Image Browse Button not Showing on frontend

I have a problem with insert image popup. The popup opens, but I can't see the browse button so I can't upload an image from frontend. What can be the problem? On phtml i have used below jquery to ...
vikas mehar's user avatar
2 votes
0 answers
184 views

Magento2 admin order history editor issue

I have added tinyMCE editor in Order status history for comment field, the issue is when i get ajax response, editor disappears instead its showing normal textarea field, please find below screenshots ...
bhargav shastri's user avatar
2 votes
0 answers
213 views

TinyMCE (WYSIWYG) in DynamicRows bug

TinyMCE (WYSIWYG) is not showing up in a form field in Adminhtml DynamicRows container when more than one instance of the row is called. <fieldset name="tab"> <argument name="data" xsi:...
shec's user avatar
  • 71
1 vote
0 answers
162 views

Magento 2 – default admin editor -where is settings js code?

I want to change admin editor setting but not found config js code, please guys share me JS code path so i can change editor settings.
Pukhraj Suthar's user avatar
3 votes
1 answer
1k views

Magento 2 - Add spellchecker to tiny mce wysiwyg editor as plugin

Trying to add the spellchecker to tiny mce in Magento 2 but not able to get it working. As a start I used this tutorial for Magento 1 http://www.danneh.org/2012/10/enabling-spellchecker-magento-...
Sander van Zuidam's user avatar
0 votes
2 answers
575 views

TinyMCE - Update Validation Config Settings to allow <div> inside <a>

I have an issue where TinyMCE is removing my links in my static CMS blocks. I believe this is because the anchor includes div's which doesn't meet the validation for TinyMCE. How is it possible to ...
lky's user avatar
  • 787
2 votes
1 answer
761 views

Magento 1.9 Stop Removal of Valid Elements in WYSIWYG

Rather frustratingly, I can see that magento's wysiwyg removes elements such as the picture element. Digging around I can see that the TinyMCE editor is used and setup is hardcoded here: /...
Vaishal Patel's user avatar
7 votes
3 answers
9k views

How to override a JS file in lib folder in Magento 2

I want to override a JS file which lives in following folder MAGENTO_ROOT\lib\web\tiny_mce\plugins\advimage\js\image.js I want to override this file from my custom admin theme or by a module. Any ...
nuwaus's user avatar
  • 2,314
1 vote
0 answers
401 views

How to Disable TinyMCE in WYSIWYG Editor globally for Magento 2.1.x?

I'm struggling with adding html code to cms blocks and pages via the WYSIWYG editor in Magento 2.1.x(10). In WYSIWYG editor of cms block I enter: <div class="classname" data-url='{{store url="...
Iveta Allogenes's user avatar
2 votes
1 answer
4k views

SecurityError: Permission denied to access property "tinymce" on cross-origin object

I'm using Magento 1.9.3.4 AND KeyCDN. I configured the js/media/css files to come from CDN. On the CDN I enabled the CORS. The CDN uses HTTP/2, shared SSL and the Origin Shield setting is set to "...
Pascut's user avatar
  • 329
1 vote
1 answer
664 views

Magento 2: How to override lib/web/tiny_mce/tiny_mce_src.js?

I made some changes in tiny_mce_src.js to avoid wrapping elements in <p> tag in wysiwyg editor (I set forced_root_block : '' in 11277 line). Is it possible to override ./lib/web/tiny_mce/...
Denys Belevtsov's user avatar
2 votes
2 answers
4k views

Magento2 - Wysiwyg images show broken thumbnail

When I insert a image in the wysiwyg editor (TinyMCE) the image shows properly in the frontend but gets a broken thumbnail image in the editor. The url it generates in the editor is similar to this: ...
Frank Groot's user avatar
1 vote
1 answer
502 views

Magento2 - TinyMCE editor adds %20 in image url

The TinyMce editor adds %20 before the image url. Expected output <p><img src="{{media url="wysiwyg/pdf/pdf.png"}}" /></p> Output <p><img src="%20%20%20%20{{media url="...
Frank Groot's user avatar
4 votes
1 answer
577 views

How to add new option in WYSiWYG editor magento

i want to add new option in WYSiWYG editor like list bullet & list number. Is there is any way to add List square option in magento WySiWYG editor.
Magento 2 Learner's user avatar
8 votes
3 answers
2k views

Cannot edit widgets in WYSIWYG editor anymore

Recently, editing widgets in the WYSIWYG editor does not work anymore. The browser console shows the following error when I click on a widget: Uncaught DOMException: Failed to execute '...
Fabian Schmengler's user avatar
1 vote
1 answer
557 views

How to add 2 wysiwyg field in same form in back office

I need to insert two wysiwyg fields with tinymce in my backend module in the same form. It's working when I insert only one with this code in the edit tab form: $fieldset->addField('mother', '...
Patrick Valibus's user avatar