Questions tagged [editor]

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

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

Limit editing capabilities to one page [duplicate]

I have one user on WP website. I want to give him editor role because he need to edit pages and as I see - edit_pages capability requires user to be at least editor. The problem is that i want to ...
0
votes
1answer
453 views

WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance

I am having an issue with initializing the inline link toolbar in a custom instance of the WP editor. The instance is added in a dynamically loaded modal using the wp_editor function and some ...
0
votes
1answer
299 views

Why WordPress not using WP_Filesystem

On wp-admin/plugin-editor.php and wp-admin/theme-editor.php, why WordPress not using $wp_filesystem to read and modify the file? if writing and modifying file do not require wp_filesystem then when to ...
0
votes
1answer
113 views

Password protected uploaded PDF page

I created a custom post-type called "designs" for this case. So I want the client to go to his backend and click "Create new Design", this will open up the create page screen, now I want my client to ...
0
votes
0answers
23 views

Image Post creates unusual extra HTML

When I post an image using WordPress, I'm getting additional HTML being created which spills out after the image. E.g. see http://www.snowcrash.eu/typing-pinyin-on-a-mac/ The HTML in Text Mode of ...
1
vote
0answers
41 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 ...
-2
votes
1answer
1k views

Why are many options missing from the editor?

I want to say for the record that I'm extremely new to anything related to Wordpress. So my editor looks like this: I see all sorts of screenshots and blog-posts everywhere that show a much much ...
1
vote
0answers
467 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 ...
1
vote
1answer
2k views

Prevent WordPress from messing my HTML

Is there a way to prevent WP from modifying my perfectly fine HTML? When writing content of a page, I'm writing a list as <ol> <li>Paragraph 1 : text Some more text</li> <...
6
votes
2answers
304 views

Let private posts stay in status “private” after edit through “editors”

I'm using some private posts for intern purposes. When an editor changes something on these posts, its status turns to pending "review" and I have to publish it again as a private post. When an ...
0
votes
1answer
180 views

How to hide editor, but keep media library access

How do I hide the editor from a custom post type, but retain the ability to access the media library? I have registered a custom post type and created a meta box for it that allows users to upload ...
0
votes
1answer
390 views

Save editor's value in user meta and retrieve it

I am making user meta fields. I have to implement a field named business_profile and implement editor on it. I have implemented the editor but I can't seem to either save its value or retrieve it. ...
1
vote
0answers
146 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 ...
2
votes
3answers
2k views

How do I remove or disable “Or link to existing content” in “insert link” dialogue?

Don't ask why. Image below pretty much ask what I'm looking to achieve:
1
vote
0answers
125 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 ...
1
vote
1answer
153 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
0
votes
1answer
42 views

Editor / Add Media: Is it possible to only allow galleries?

I am writing a theme for a client where the employees sometimes have trouble using Wordpress correctly. I am using custom fields to let them add a gallery to a portfolio item (which is just a custom ...
0
votes
2answers
2k views

How to add HTML5 required on wp_editor

I want to add HTML5 required for the client side validation on textarea generated by <?php $content = ''; $editor_id = 'YOURID'; wp_editor( $content, $editor_id ); ?> What is the ...
1
vote
1answer
92 views

Always paste as a text in visual editor

I am running a multi author blog. I allowed only visual editor for authors. So, i don't want to allow them to paste disallowed html tags from other source. I want, text will always paste as plain text....
11
votes
1answer
3k views

How to use wpLink without editor?

I would like to create theme option to add a link. Loading these scripts and triggering the dialog works fine if wp editor is present. wp_enqueue_script('wplink'); wp_enqueue_script('wpdialogs'); ...
5
votes
1answer
2k views

Force TinyMCE editor's “Toolbar Toggle” to be automatically chosen & expanded

A common problem we have with new Wordpress installations and particularly new users, is that their "Toolbar Toggle" button is not selected by default, and therefore the second line of the editor ...
0
votes
1answer
35 views

Wordpress not using edited image

I have uploaded a picture to media library and cropped the image in wordpress editor but when selecting the edited image http://mariehelenesund.se/wp-content/uploads/2015/11/Kicki-e1447542665309.jpg (...
1
vote
3answers
6k views

How can I allow a custom taxonomy for certain roles?

Im trying to only show a taxonomy for the editor and administrator but I haven't found a solution on SO or here. The closest thing I was able to find was How do I remove a taxonomy from Wordpress? on ...
1
vote
1answer
652 views

How to dynamically generate wordpress editor on frontend?

I want to initialize the wordpress editor dynamically on frontend. I have tried to include the following scripts: wp_enqueue_script('editor'); wp_enqueue_script('media-upload'); wp_enqueue_script('...
2
votes
1answer
59 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 ...
0
votes
1answer
697 views

Open editor post in a popup

I use this code to open the popup editor. <script> function edit() { var pop = window.open(' <?php echo get_edit_post_link(); ?> ', '_blank', 'screenX=200,screenY=200,width=...
0
votes
2answers
3k views

Show Wordpress Plugin Menu(Admin) To Editor

I am an Admin of wordpress website and I have created one user with Editor role, I have installed one plugin Pretty Link(https://wordpress.org/plugins/pretty-link/) this plugin shows its menu on Admin ...
0
votes
1answer
73 views

What Role to assign remote site developer?

We have hired a developer who we communicate with via upwork. We want him to be able to make any changes to the site, except to boot us out! Which Role should we assign to him - Admin? If so, is there ...
0
votes
1answer
99 views

Why are carriage returns deleted in the editor?

I'm not sure why this is happening but after I add a blank line between paragraphs and click update or go to text view and back to visual, the blank lines are gone. I can't put any space between ...
0
votes
2answers
183 views

Stripping <p> tag from elements in post

I'm fine with P tags for most of the content, since it makes styling easier. However I'd like to have span div iframe and possibly other HTML tags to not be placed inside of a p for post. I saw this ...
10
votes
2answers
8k views

Keyboard shortcut for updating a page or post?

What is the keyboard shortcut key for updating a page or post? It could save me a lot of time as rolling down a page draft is time consuming.
2
votes
0answers
434 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 ...
0
votes
0answers
139 views

WordPress Front end editor

According to this https://www.elegantthemes.com/blog/tips-tricks/a-look-at-the-upcoming-wordpress-front-end-editor this plugin https://wordpress.org/plugins/wp-front-end-editor/ is going to be in a ...
11
votes
1answer
2k views

Initialize TinyMCE editor / visual editor after AJAX insert

I have a "repeater" style field group on a custom options page. There's an active visual editor in a hidden state, and when the user clicks "add new" the whole row is cloned. I then need to initialize ...
1
vote
1answer
46 views

How to set default editor tab

I'd like to have always open the Text tab in editor in administration instead the HTML tab. Is it possible?
1
vote
1answer
2k views

Custom TinyMCE style formats disabled

I've created a TinyMCE style dropdown for the TinyMCE WordPress editor. The formats are appearing as expected on the editor but when the drop down is expanded to choose from a style, they are showing ...
0
votes
2answers
28 views

Cannot enter “::before” for li tag when editing a Wordpress page

I want to enter into my page content, under text mode editor, the HTML syntax which is ::before for my li tag. But when saved, Wordpress automatically changes that to "::before" WITH quotes. I don't ...
1
vote
0answers
155 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 ...
1
vote
2answers
698 views

Open 'View Page' Button in Editor in new Tab

I know it sounds like a Basic Question and I did google first. Google lead me to edit /wp-admin/edit-form-advanced.php to put target='_blank' there. I did that, but this doesn't seem to affect the '...
5
votes
3answers
1k views

Add class=“media_type” when media is inserted into editor

I am looking for a way to edit the link that get inserted in the editor when the user choose to add a media. The goal would be to add a class with the media type (pdf) in the link. I know how to get ...
0
votes
1answer
902 views

`tinyMCE is not defined` after migrating site to server

After migrating site tinyMCE (text editor) top bar have disappeared & text color have changed to black, I am getting 4 errors in concole and below is a snapshot of it. I am using WordPress ...
0
votes
1answer
865 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
0
votes
2answers
166 views

Post thumbnail is not shown in wp-admin

I am currently working on a theme for a client and now just got into a problem: When I want to set an image (also existing/already uploaded images don't work) the editor just not accept it and don't ...
0
votes
1answer
40 views

make categories editor unchangeble for my post_type

In WP 4.2 project I added new post_type using register_post_type function and taxonomy using register_taxonomy function and 2 categories using wp_insert_category function. That all works for me ok, ...
0
votes
1answer
51 views

Add functionality to post editor

I can't find any documentation to add a functionality to the post editor. I've got this so far: http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-styles-to-wordpress-visual-editor/ But I ...
1
vote
1answer
3k views

Add table button in editor without Plugin

i want to add the "tablecontrol" ty the editor. This is what I've tried: function my_mce_buttons_1($buttons) { $buttons[] = 'superscript'; $buttons[] = 'subscript'; $buttons[] = '...
0
votes
3answers
2k views

Wordpress tinymce prints empty P tag and break html format

I'm raising this problem because I don't find a latest answer and the problem still exist to me. I'm running wordpress 4.2.2 with x theme when I'm editing the content via WP default editor (tinymce). ...
0
votes
0answers
419 views

image_send_to_editor filter - Unwanted paragraphs and line breaks

I'm using image_send_to_editor to filter the output the images that are inserted to my posts. The filter works perfect except for when I'm updating/saving the post. A new paragraph with a line break ...
0
votes
1answer
80 views

used code below to allow Editor access to menus - but change permanent, how do I revert?

I have tried the code below to allow Editors to access menu settings. I then removed it from functions.php but the Editor access is still there so looks like this has made a permanent change! Ayy ...
11
votes
4answers
6k views

Admin: very slow edit page caused by core meta query

We've been noticing really long load times when going to edit a post or page. Using Query Monitor, we found that this WP core query is taking upwards to 15-20s. SELECT meta_key FROM wp_postmeta ...

1
3 4
5
6 7
11