Skip to main content

Questions tagged [tinymce]

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL. TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

1 vote
0 answers
45 views

wp.editor.initialize() breaks when support for 'editor' is added to custom post type

I've a custom post type in a custom plugin. In this post type, I am assigning a meta box field for some fixed hero content. This is just a textarea that I am applying tinymce to. This works well, but ...
Prestosaurus's user avatar
0 votes
0 answers
39 views

How to add button to WYSIWYG to insert shortcode with params (filled in system popup)?

It seems to me that there must be a solution, but I haven't found it. During the theme development process, we create many shortcodes for inserting unusual html layouts into the text. It would be ...
Oleksiy Goldayev's user avatar
2 votes
1 answer
78 views

How to add placeholder in wp_editor?

i would like to add placeholder when using wp_editor() function. I tried to pass placeholder attribute in textarea, but didn't work. I tried to pass it in settings wp_editor( $...
Sak's user avatar
  • 23
0 votes
0 answers
90 views

How to append TinyMCE editor in TinyMCE editor's popup

I'm trying to make a tinyMCE plugin for wordpress. Here is modal window config: editor.windowManager.open( { title: 'Title', body: [ { type: 'textbox', ...
Василий Колов's user avatar
0 votes
1 answer
78 views

Add/remove tools from tinymce

I have added tinymce to a plugin using this code $settings = array( 'text_area_name'=>'the_data', 'tinymce' => true, 'media_buttons' => false, ); wp_editor($initial_data, $id, $settings)...
Steve's user avatar
  • 297
0 votes
0 answers
66 views

wp_editor mce-view

We are using the wp_editor on a page on the front-end to allow subscribers to create a cpt post. We added support for auto-turning youtube urls into embed tags: function mce_scripts() { ...
shanebp's user avatar
  • 5,063
0 votes
0 answers
32 views

TinyMCE - Unable to load the editor in vue front-end plugin page

I have this code in my plugin page that is created using vue 3. I need to use the wordpress editor and I'v used the wp_enqueue_editor() function to load all the needed assets of tinyMCE. in the vue ...
OHICT's user avatar
  • 133
0 votes
0 answers
15 views

How to show metabox in custom php menu page

I've created a custom dashboard for wordpress and I want to show some custom metabox on it. Is there any way to achive this with a filter or function of wordpress? I've tried using the do_meta_boxes() ...
OHICT's user avatar
  • 133
0 votes
0 answers
63 views

How do I modify the TinyMCE editor Add Media button to insert a thumbnail preview of PDFs in addition to a text link?

We're still using TinyMCE as our post editor. When Editors use the 'Add Media' button to select a PDF from the Media Library, they choose the preview image from the Attachment Display Settings at ...
jchwebdev's user avatar
  • 775
0 votes
1 answer
33 views

Should a theme have it's own tinymce address?

A client who is using a theme with a builder has an error showing after the update to 6.3. It's not an error that causes either the site or the dashboard to fail. Instead, it shows in the post content ...
Nora McDougall-Collins's user avatar
0 votes
0 answers
81 views

How to create custom toggle button in tinymce?

I know how to create a basic button with no state. I created two buttons that output custom list styles by outputting ul's with a certain class that is styled in the CSS. But now I would like for the ...
Chris Okwakol's user avatar
0 votes
0 answers
60 views

CSS Styles specific to Admin Sidebar not loading

I have several sites where I have loaded a custom stylesheet for the Admin. They work fine in both the TinyMCE editor and the sidebars. I have one site where the custom stylesheet targets the TinyMCE ...
jchwebdev's user avatar
  • 775
0 votes
0 answers
77 views

How to apply filters if editing specific template

I am using the following code to add custom styles to the content editor: /* Customize editor */ function mce_mod( $init ) { $style_formats = array ( array( 'title' => 'Gold Heading 1', ...
Junky's user avatar
  • 103
0 votes
1 answer
43 views

WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped

Note: I am using https://wordpress.org/plugins/classic-editor/ with latest updated WordPress. I have a Blog at https://www.exeideas.com/ and I share code snippet here also that was working before ...
Muhammad Hassan's user avatar
0 votes
1 answer
232 views

Enqueue MCE Editor CSS in admin page

I am using mce editor for some formatted content. That content is stored in metadata. Now when I render the content it does render the content but the styles for the contents are missing like "...
MrCoderAndEditor's user avatar

15 30 50 per page
1
2 3 4 5
47