Questions tagged [editor]

'Editor' is one of several default user Roles in WordPress

195 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
428 views

How to add button to post page WordPress 5.x

How can I add a button to a posts page? what hook can be used to add a custom button I'd like to place it next to, or near, the "Publish/update" button, or modify the publish button for triggering ...
Haseeb's user avatar
  • 141
4 votes
1 answer
1k views

Give editors access to particular plugin - turn "admin.php" into "edit.php"

I'm using the Business Opening Hours plugin. I made it appear in the sidebar using the Client Dash plugin, but when the Editor clicks it, they cannot access it, only the Admins, how can I change that? ...
elfi812's user avatar
  • 41
3 votes
0 answers
49 views

WordPress Rest API only returns content when posttype has editor capability

I am trying to request my post via the WordPress V2 Rest API in the backend. For whatever reason the post content is only returned when my custom post type has the editor support enabled. Is there a ...
Dhalucario's user avatar
2 votes
1 answer
554 views

Define multiple Gutenberg editor widths

I'm trying to define multiple widths for the Gutenberg editor depending on the post/page template. I have a full-width page template and would like the editing experience to be as close to the live ...
sebfck's user avatar
  • 105
2 votes
0 answers
39 views

How can I get the post content displayed in a text field that allows to edit posts?

I replaced my WordPress TinyMCE editor with a custom textarea field. Everything works well when saving the post but whenever I want to edit the post, the textarea field goes blank. I just want to ask ...
Abiodun Adetona's user avatar
2 votes
0 answers
138 views

CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick

Only the buttons Add Media, HTML and Visual show up after installing CKEditor for WordPress. In addition, encounter the following error while clicking to HTML or Visual by using the tool Inspect ...
SparkAndShine's user avatar
2 votes
1 answer
93 views

Disable mouse image resizing in editor

I want to disable the mouse image resizing function in wordpress standard editor. So that its not possible to resize the default image size when you select an image and pull on it. Any idea how i can ...
public9nf's user avatar
  • 376
2 votes
0 answers
492 views

Add WYSIWYG to Image Description field

I need to build this thing: It's essentially an image with a caption, and it can go inline anywhere in the text. I could just create a shortcode for it I suppose, but I'd really like to integrate it ...
JacobTheDev's user avatar
  • 1,171
2 votes
0 answers
653 views

How to make a customized "Create Gallery" tab in the 'Add Media' window?

I'm developing a plug-in and wanting to make a customized version of the the "Create Gallery" tab of WP v4.0, but have the resulting output (i.e. what gets inserted into the TinyMCE editor) to be ...
mwKory's user avatar
  • 21
2 votes
0 answers
4k views

Theme Editor Not Showing

I made a custom WordPress theme from scratch for a client, then zipped it up and sent it to them. They installed the theme fine, but for some reason the theme editor does not display. What I mean is ...
Angela Giese's user avatar
2 votes
1 answer
282 views

3.5 media.editor: what is the event listener for choosing an image?

What is the event listener for selecting an image in the media.editor javascript. I am attempting to add a multiple image selector to a custom plugin, and I need to show the user what images they have ...
cj5's user avatar
  • 220
2 votes
0 answers
1k views

Strange problems when I try to insert HTML\XML code snippet in my posts

I am experiencing some problems while trying to insert XML code snippet into my WordPress articles. I have just read this tutorial: http://codex.wordpress.org/Writing_Code_in_Your_Posts I am using ...
AndreaNobili's user avatar
2 votes
1 answer
298 views

How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?

I have a custom hierarchical taxonomy containing only two levels of items. First Level the title, second level items of the taxonomy. Is it possible to add a "meta box" to the posts editor of ...
Patrick's user avatar
  • 121
2 votes
2 answers
2k views

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
Bikash Gurung's user avatar
1 vote
0 answers
237 views

How can I add a custom button to the post editor?

I want to have a custom button in my post editor, but everything I find online is for the previous, classic editor of WordPress and none of them seem to work with the new Gutenberg thing. Red mark is ...
Shahriar's user avatar
  • 175
1 vote
0 answers
69 views

How to Disable auto id attributes in Heading tag?

I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’...
Freya West's user avatar
1 vote
1 answer
653 views

Is there any simple way to remove Gutenberg editor H1 H5 H6 and change the label for the rest H2 H3 H4?

I have been looking for a solution for sometime now. Have not found any one yet... All we all know every page should have only one H1 tag, however it is not known for most of the non tech editor. I ...
Blue Li's user avatar
  • 15
1 vote
0 answers
62 views

wp_editor() youtube link does not load video

Hello I am trying to get a preview of the youtube video when pasted to the editor but it keeps loading plain instead of loading the video preview. I have created an options page in admin side for a ...
user avatar
1 vote
0 answers
19 views

Visual editor issue by having multiple tiny mce editors in a CPT

I have a custom post type in which I have added multiple wysiwyg editors, when I click on visual, the content of the editor (button, text, title) get inside of the wysiwyg editor.. it's odd. It looks ...
DroidPress's user avatar
1 vote
0 answers
97 views

how add custom tag/tool in classic editor?

at this moment i dont use new wp block editor still using classic html editor and at this moment were editing lots of articles in foreign language..default WordPress editor is something like this if ...
antonnb's user avatar
  • 13
1 vote
0 answers
245 views

Can the wordpress color palettes by changed through Javascript?

I'm building a setup for a client that allows them to use a number of colour swatches throughout their gutenberg blocks in a post. They define the colour swatches in the document inspector panel (post-...
Dale de Silva's user avatar
1 vote
1 answer
227 views

How `window.wp.oldEditor` is being set in the editor?

I'm trying to implement WordPress Gutenberg editor outside of WordPress itself. Everything is working fine except having old classic block support and that requires window.wp.oldEditor to be set. If ...
Amirreza Nasiri's user avatar
1 vote
1 answer
581 views

Remove html markup by wordpress

I am recently creating a website for my company. I found there are many unnecessary markup by wordpress. I have provided screenshot and sample of the markup that i am referring to. </ol> &...
Jornes's user avatar
  • 733
1 vote
0 answers
83 views

WP Editor Issue in Backend

I am stuck on silly issue of wp_editor function in WordPress backend in custom plugin page. See issue for wp_editor in attached images I have called the wp_editor function like this <?php ...
Deepak Lakhara's user avatar
1 vote
0 answers
230 views

Set featured image using javascript in post editor

I have built a plugin that will auto-generate an image based on some variables in the post the user is writing. They have the ability then to set some colors and stuff to make the image look nice. ...
user1889580's user avatar
1 vote
3 answers
1k views

Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?

Edited for clarity and to display steps we take to reproduce the issue. Question What would cause absolute URLs on our staging site to prepend the staging site's subdomain to them when saved in the ...
Caleb Mieszko's user avatar
1 vote
1 answer
878 views

Edited Child Theme's "header.php" but it doesn't appear to change the file

So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/ and edited the header.php file. I saved the file and uploaded it and I can confirm the file has changed because if I check via ...
Ryflex's user avatar
  • 103
1 vote
0 answers
471 views

How to prevent the editor from redirecting to website within iframe?

I have been trying to embed a website into a private page, and have tried out the "embed" and "iframe" tags, but as soon as I update the changes it redirects to the embedded site. I read more about ...
omar.may's user avatar
1 vote
0 answers
370 views

Gutenberg Block with Select from JSON-File

I would like to create a block for Gutenberg. I currently have a default configuration: function my_block_category($categories, $post) { return array_merge( $categories, array( ...
180690's user avatar
  • 81
1 vote
2 answers
66 views

Adding content in Gutenberg editor

I updated my site to the latest version of Wordpress. I started using the new editor but have a question. Is there a way to add a block of content that holds all the header tags and paragraph tags? ...
Jon's user avatar
  • 331
1 vote
0 answers
669 views

How to display full width block without toolbar?

I'm trying to create a full width blocks for the new Gutenberg editor, however I don't want to give to option to toggle the block alignment (eg: like the Cover block does) just make it full width all ...
Javier Villanueva's user avatar
1 vote
0 answers
210 views

Wordpress editor converted/deleted HTML entities code

2x WP 4.9.1 (old and updated with database utf8 / new with new database utf8mb4) I have a problem with HTML entities in the Wordpress standard editor. I write the HTML entities in hexadecimal code ...
Suka's user avatar
  • 11
1 vote
0 answers
465 views

Add buttons to the new TinyMCE WP Editor. Javascript API

I've added more buttons to a TinyMCE instance using the new Javascript API available since WordPress version 4.8. As you can see in the following code block, I could add more buttons but I'm not ...
Andrei Surdu's user avatar
1 vote
0 answers
51 views

Trying to Edit a Page but it sends me to a Product Edit page

I have the strangest issue that I encountered. I have updated the newest version of Wordpress and installed Google Analytics GADWP Plugin and Yoast SEO. (I don't think this is the issue though) When ...
Andrew Lee's user avatar
1 vote
0 answers
45 views

How to get media source of text editor in WordPress

I want to get source of files when I click add media. Suppose, when I select a pdf file I get <a href="http://thedomain.com/wp-content/uploads/2017/04/myfile.pdf"rel="">myfile</a> in ...
Kallol Das's user avatar
1 vote
1 answer
817 views

Is it possible to disable the image alignment options in the post editor?

By default, when you insert an image into a post, it has some image alignment options (see below). In my theme I want every image to be full width. Of course, it's easy for me to change the front-end ...
Pete's user avatar
  • 317
1 vote
0 answers
169 views

Lost draft under all posts and drafts

I'm trying to delete drafts that I've never created. I suppose they are auto drafts. Searched and searched but maybe because it's a super easy fix that no one asks, but can't figure out how to ...
musasi's user avatar
  • 43
1 vote
0 answers
495 views

Add Attribute to p Tag of Post Content

I would like the default <p> elements that are added to the (TinyMCE) editor when users post content, to have a dir attribute as well. Reasoning: When the editor is displayed to users, it is ...
theyuv's user avatar
  • 209
1 vote
0 answers
48 views

Editors change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published?

Is it possible to have the Editors to change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published? I can hide the button for non admin but I ...
Nuno Sarmento's user avatar
1 vote
0 answers
525 views

Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly

Theme: Hemingway, Twenty-Sixteen Host: Bluehost Browser(s): Safari, Chrome OS: OSX El Capitan 10.10.5 (14F1605) Website When I try to "Edit Page" visual editor screen is blank, in both Text and ...
Sky Harman's user avatar
1 vote
0 answers
155 views

How can I register a custom "Text Pattern" (WP 4.3) for TinyMCE?

WP 4.3 added some really cool editor features: https://make.wordpress.org/core/2015/08/01/editor-enhancements-in-4-3-%E2%9C%A8/ The "Text Patterns" are really useful to create lists, quotes ...
jerclarke's user avatar
  • 2,983
1 vote
1 answer
215 views

Replace image caption with its title and description

Is it possible to replace the caption text of an image with its title and description fields when inserting it in the editor? If so, how? Thanks in advance
leemon's user avatar
  • 1,718
1 vote
0 answers
158 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
Roc's user avatar
  • 463
1 vote
0 answers
41 views

Opening Brackets Do Not Format to Paragraphs in Visual Editor

I'm having issues with paragraphs in the visual editor. So let's say I create a blockquote, type the first line, hit enter. It makes a new paragraph. Shift + enter makes a new line. Just like usual, ...
Jon's user avatar
  • 171
1 vote
1 answer
476 views

Can't format content of Rich Text Editor in Template

I use following functions to add a new rich text editor in admin . add_action( 'add_meta_boxes', 'adding_new_metaabox' ); function adding_new_metaabox() { add_meta_box('...
Mortzea's user avatar
  • 196
1 vote
0 answers
210 views

Trouble adding tiny mce to textarea in custom plugin

I'm using the Sunrise open-source OOP framework to develop my plugin. I am building out a new settings page and I'm having trouble adding in a WYSIWYG/tiny MCE textarea to the settings page. I've ...
SNpn's user avatar
  • 111
1 vote
0 answers
54 views

Wordpress editor spacing very unreliable

Firstly I apologize for the vague question. But Im wondering can someone help. I have been developing on WordPress for approximately 2 years now, and I have yet to come up with a reliable solid ...
Adrian's user avatar
  • 111
1 vote
1 answer
390 views

More than one TinyMCE (wp_editor) with different $settings['drag_drop_upload'] values breaks

It appears that when I have two+ separate wp_editors with different values for drag_drop_upload they all are built as if they have drag_drop_upload set to true. If I set them all to false they act ...
setterGetter's user avatar
1 vote
0 answers
372 views

How to customize the "Insert/edit link" popup box?

is there a way to customize the "Insert/edit link" popup box in the editor so that it does something like this: Have a checkbox that says "Insert affiliate tag at the end of link" If the checkbox is ...
Tam N.'s user avatar
  • 255
1 vote
0 answers
49 views

t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor

I am running a development site with the WordPress beta plugin, currently running 3.9 beta 3 I am using Bill Erickson's Core functionality plugin which calls Toscho's t5-fresh-editor-stylesheets.php ...
Sokratesagogo's user avatar