We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [wysiwyg]

WYSIWYG ( what you see is what you get ) Editor

Filter by
Sorted by
Tagged with
14
votes
4answers
10k views

Magento 2 WYSIWYG Media image directive using admin url

Why is magento 2 creating directives for media images using the admin url? for example when i add an image on category page WYSIWYG it adds <img src="{{media url="wysiwyg/image.jpg"}}" alt="" /&...
9
votes
3answers
14k views

Magento 1.9.1.0 - Upload PDF File Type in Wysiwyg Editor and show PDF Icon

I made a custom module allowing user to upload .PDF file type in CMS > Pages. The code used is below: app/etc/modules <?xml version="1.0"?> <config> <modules> <...
8
votes
3answers
1k 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 '...
8
votes
2answers
6k views

Why some html tags in not saving in cms pages?

I am trying to put some html in my home page but whenever I save the page the tags are gone, it doesn't save. Here is the html which I am trying to save in the page ie. <section class="bottom_sec"...
7
votes
3answers
5k views

Change {{media url=“wysiwyg/image.jpg”}} in frontend in custom module

I'm building a custom module, a very simple blog. I already have everything working. The last thing I added, was de WYSIWYG image upload capability. In the Admin, everything works fine. But in the ...
7
votes
4answers
12k views

The directory is not writable by server. Magento 1.9 on XAMPP

When I added an image above error display. How to change permission to add image for all ?
7
votes
1answer
2k views

How to add WYSIWYG editor button in phtml form

I want to add wysiwyg editor button for 'characteristics' field in below form. I added script as in backend, but is not working in my form. When I click that button it alerts windows is not defined, ...
6
votes
2answers
2k 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 ...
6
votes
1answer
2k views

Magento 2: Get WYSIWYG editor's data in frontend?

I add wysiwyng editor in admin Ui form. <field name="content"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="...
6
votes
2answers
2k views

How to replace default Magento editor by Editor based on tinyMCE 4?

The default Magento Editor has become less effective, no HTML5 support with weak image upload and management, so i need to upgrade editor! I'm looking for an Editor providing strong enhancements with ...
5
votes
1answer
4k views

How can I enable WYSIWYG for product attribute field?

I want to enable the WYSIWYG editor on a custom product atribute. It displays on description and short description however not on the custom product attribute. Does anyone know how I can do this? ...
5
votes
2answers
2k views

How to add a (working) widget button to category WYSIWYG editors?

I need to add the widget button to the WYSIWYG editors of some category attributes. There are two questions on Stack Overflow with accepted answers: Magento: How to add the widget button to the ...
5
votes
0answers
260 views

Magento : WYSIWYG in custom widget

I have tried adding a WYSIWYG editor to custom widget I have created using the approach outlined at: http://behrendtio.github.io/2013/04/12/using-a-wysiwyg-editor-in-a-magento-widget/ However, when I ...
5
votes
0answers
197 views

Magento 1.9.1 WYSIWYG Editor Logs me out of Backend

each time I change a product description via WYSIWYG Editor, Submit the Change in the Popup Window and try to Save the article in Magento Backend, it Logs me out of the whole Backend, redirecting to ...
5
votes
3answers
4k views

WYSIWYG custom styles

Is it possible to add custom styles and classes in drop down menu in wysiwyg editor in magento! I have enclosed the picture for better explanation.
4
votes
3answers
8k views

Magento 2 how to add product attribute of type textarea with editor programmatically

How can we add custom attribute using setup script in magento 2 attribute type should be textarea with editor. Like Product description.
4
votes
4answers
6k views

Wrong URL returned by WYSIWYG editor for images

I've noticed a weird behavior from the WYSIWYG editor in the product description. Whenever I insert an image it will output <img src="{{media url="http://example.com/media/wysiwyg/the-picture....
4
votes
1answer
373 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.
3
votes
2answers
3k views

Add WYSIWYG Editor to Block Form in Magento 2

How do you add a WYSIWYG editor to a custom form which you create through a block. I have found this article for doing this through UI components but need this for a block. Have tried: $fieldset-&...
3
votes
1answer
732 views

Removing <ul> tag from editor

I have added the following code to the editor: <li><a href="#" class="xxx"></a></li> After saving it automatically changed to : <ul><li><a href="#" class="xxx"...
3
votes
1answer
2k views

How to edit admin TinyMCE JavaScript code (without modifying core files)?

I'm looking to change the init of TinyMCE for Magento admin. I'm just not satisfied with the default options and want to give my client a more user-friendly way of working with. So I want to remove ...
3
votes
2answers
2k views

make wysiwyg as default

Insted of clicking the WYSIWYG Editor is it possible to make it visible without clicking ?
3
votes
2answers
2k views

how to upload video file WYSIWYG editor in Magento 2?

I can't upload a video file through WYSIWYG editor. Sometimes it says File validation failed.. Sometimes it simply doesn't do anything while uploading a file. Kindly help me.
3
votes
2answers
1k views

Is it possible to hook into the image upload function on the wysiwyg editor?

I'm trying to trigger a function after an image has been uploaded using the wysiwyg editor but I don't think an events is fired after this operation. I know it's relatively easy to do so when you ...
3
votes
2answers
3k views

WYSIWYG/TinyMCE: how to prevent inserting <p> tags

For the homepage of a magento shop I use the following code in the plain text editor: <p>Some text...</p> {{block type="catalog/product_list" name="home.catalog.product.list" alias="...
3
votes
2answers
8k views

Magento WYSIWYG editor image upload not working [closed]

Hello EveryoneI have a problem with my WYSIWYG editor in magento admin. When I try to upload image or video, it processes the image. Then shows 100% upload complete message. After that nothing happens....
3
votes
3answers
1k views

Broken image links from Wysiwyg's shortcodes on category and product pages not translating on Magento website

Broken Links from wysiwyg on frontend of Magento store. The URL's on broken pages are like below: Admin - <img src="{{media url="wysiwyg/image.png"}}" alt="image" /> Frontend - <img src=...
3
votes
0answers
384 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....
2
votes
2answers
9k views

Cannot display image inserted by WYSIWYG editor

I created a form on backend and inserted an image into the editor. The image displays properly in the editor. However, the image cannot be displayed on frontend and 404 error is shown on the console. ...
2
votes
1answer
2k views

Convert WYSIWYG content into html in magento2

I want to get all content of WYSIWYG content display on my popup. When the WYSIWYG content has an image and text added then the image doesn't display. I want to get output like that. If I added Bold ...
2
votes
2answers
326 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 ...
2
votes
1answer
863 views

Using wysiwyg editor on frontend templates in magento 2

I found so many articles about how to use wysiwyg editor in admin pages, and I was wondering if I could use it in the frontend templates. if yes, please tell me how. I'm using magento 2.1.5.
2
votes
2answers
690 views

Magento 2: - Set WYSIWYG editor near to custom option in admin side

We created text box near to custom option can it be possible to put wysiwyg? Code we use for that StackExchange\Affordablemantel\Plugin\Catalog\Ui\DataProvider\Product\Form\Modifier\CustomOptions\di....
2
votes
2answers
471 views

How Can I Show My Custom admin module's field's data in frontend (in a popup) in magento 1.9?

I have a custom module admin side created by me via an extension of module creator. My module has some fields and one field is type editor i.e. the field having WYSIWYG editor. I want to fetch its ...
2
votes
2answers
2k views

Magento 2.1: create a WYSIWYG field in a custom widget

Is there a way to create a custom widget with WYSIWYG fields? I followed this tutorial here but when I enter data, they are not saved.
2
votes
1answer
2k views

How to add the WYSIWYG editor in customer form in admin area

i create a custom attribute in customer form,that is textarea, in that i need to add the WYSIWYG editor. your suggestion and idea will help me more
2
votes
3answers
3k views

Add WYSIWYG Editor To Custom Widget

I am attempting to add a WYSIWYG editor to a field within a custom widget. I'm actually able to get the WYSIWYG editor to appear as displayed in the screenshot below: My problem is that the data ...
2
votes
1answer
82 views

Magento 2 WYSIWYG field in custom admin form

I'm trying to add some fiels dynamically with Ui interface in a custom admin form. in order_ticket_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/...
2
votes
1answer
244 views

Skin directive doesn't work in WYSIWYG editor when using custom template

I'd like to insert images from the theme folder to a static block, but the image URL looks to be invalid in the WYSIWYG editor. <p><a href="#"><img alt="" src="{{skin url='images/...
2
votes
1answer
491 views

WYSIWYG editor opens when edit products

In the configuration I've enabled the editor: Enable WYSIWYG Editor = "Enabled by Default" Is it possible, that the Editor is open when I start edit products without click on the button and open it in ...
2
votes
2answers
5k views

How to add wysiwyg editor to custom frontend form of custom module in Magento1.9

I have shown here https://stackoverflow.com/questions/22218898/magento-add-wysiwyg-to-custom-frontend-form and I have putted the code of that site in my .phtml file of custom module for showing ...
2
votes
1answer
2k views

Integrate WYSIWYG TinyMCE in Admin Custom Module and Contact Us / CMS Page

I followed this blog to add WYSIWYG editor (TinyMCE) in my custom Admin Magento Module. I can see it in my backend, but the issue is when I click on Insert Image, Insert Variable or Insert Widget, it ...
2
votes
1answer
3k views

Getting 404 cms_wysiwyg directive image URL

I noticed in the Magento CMS editor TinyMCE, the image thumbnails are set as the following format after a base64 encode of the shortcode {{media url="wysiwyg/foobar.gif"}} index.php/admin/cms_wysiwyg/...
2
votes
1answer
995 views

How to get different image sizes in WYSIWYG editor?

I'm trying to get some responsive images working on my store using the srcset attribute and I figured one of the simplest way to do so was getting a large and a small version of the image in the ...
2
votes
1answer
1k views

WYSIWYG editor for transactional emails

What's the best way to enable a WYSIWYG editor for transactional emails? I would of thought this feature came natively with Magento but it doesn't seem that way I have found the following free ...
2
votes
1answer
1k views

Placeholder for input in WYSIWYG

I've been building a form lately, on a CMS Page. But something strange happens, when I add the following HTLM : <input class="input-text" type="text" name="code" placeholder="My text here"/> ...
2
votes
1answer
2k views

wysiwyg in custom module, image links are incorrect

I have a custom module, where I want to add wysiwyg editor to field. I do it in this way: $fieldset->addField('submenu_html', 'editor', array( 'name' => 'submenu_html', ...
2
votes
0answers
63 views

{{media url=“…”}} doesn't work on product attributes

After magento update to version 2.3.2 i noticed that {{media url="..."}} is not working on product attributes like 'description' attribute. In backend the url is resolved correctly and i can see the ...
2
votes
0answers
100 views

Magento 2: How to enable SVG image for category custom image upload

I need to enable SVG image in upload for custom module. I have tried all the solution which i have found. Here is my code: /etc/di.xml <type name="Magento\Cms\Model\Wysiwyg\Images\Storage">...
2
votes
1answer
53 views

1.9.4 thumbnails not loaded correctly from .thumbs dir

... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?" M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/...