0
votes
0answers
143 views

Why if i enqueue the tinymce script i get undefined error

<?php /* Plugin Name: random plug Plugin URI: http://example.com/wordpress-plugins/my-plugin Description: A plugin demonstrating Cron in WordPress Version: 1.0 Author: Brad Williams Author URI: ...
1
vote
1answer
114 views

TinyMCE Styles Dropdown not adding html tags other than span

I am trying to add h1,h2 .. in the TinyMCE Styles Dropdown with my other html elements. I have tried the following code, but the problem is it only adds styles if I use span as 'block' value. If I ...
2
votes
0answers
101 views

Bridge Wordpress Media API with custom tinyMCE plugin

In my tinyMCE plugin, I would like to be able to call the Wordpress Media manager introduced in WP 3.5. I am currently working on a plugin that needs to fetch images from the library. I know we can ...
0
votes
0answers
191 views

Problem implementing TinyMCE in plugin's textarea in WP admin

I have this in my plugin settings page in admin: public function register_settings_and_fields() { register_setting('my_plugin_options', 'my_plugin_options'); ...
0
votes
1answer
115 views

Multiple Block Quotes without using HTML

First of all, I have a client that has no HTML knowledge. He wants his all his posts to have a certain format where within the post body, he can add multiple pull quotes with different styles. Note ...
6
votes
1answer
104 views

API to trigger prompt on leaving page

I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...
0
votes
3answers
141 views

Trouble using wordpress functions in a pop-up modal form

I'm working on a plugin and I've added a button to the tinymce editor that pops up a modal form, with options for the shortcode, and then inserts the shortcode with the selected options in to the ...
0
votes
1answer
691 views

How to close tinymce inline popup

I have been looking around, but am unable to close the popup programmatically. The following code does not seem to work. tinyMCEPopup.close() TypeError: Cannot read property 'windowManager' of ...
0
votes
1answer
303 views

Custom characters of tinymce editor are saved as question mark

I have integrated tinymce editor of wordpress to my custom plugin. I save the data entered in to Database via ajax like this: encodeURIComponent('<?php echo ...
13
votes
2answers
17k views

How to add a shortcode button to the TinyMCE editor?

How to make any plugin icon in wordpress post? The code I want to insert in plugin code and will appear in post bar [wp-admin/post.php]. Like this image: Output: If I click the icon it ...
5
votes
2answers
1k views

How to provide translations for a WordPress TinyMCE plugin?

I know that I can get my translations into JavaScript doing: $MyTranslations = array( 'translation1' => __("Some String 1", "MyTranslations"), 'translation2' => __("Some ...
1
vote
2answers
72 views

TinyMCE editor turns white on Biographical info [closed]

I tried out the solution found here: How to use tinyMCE for user “biographical info” without messing with any core file? and added it to my plugin code. The problem is, it turns the editor white (see ...
1
vote
1answer
233 views

Rich text editor settings persist throughout all rich text editors

I have an issue I'm trying to better understand in order to force mce to true in the script check below. Background: I'm applying a rich text editor to the category description textarea to allow ...
0
votes
1answer
2k views

How to display TinyMCE HTML view?

I'm displaying TinyMCE in my plugin's settings using wp_tiny_mce(): <?php wp_tiny_mce( false , array("editor_selector" => "a_nice_textarea"));?> <textarea class="a_nice_textarea" ...
1
vote
1answer
1k views

the_editor() function

I'm writing a WordPress plug-in that requres user input, so I thought I'd try and use the default WordPress rich-text-editor. Firstly so as not to have to include a text editor in my plug-in when ...
2
votes
2answers
334 views

WYSIWYG editor in WP 3.2 plugin

I've created my own WP 3.2 plugin. Now I want to put the WYSIWYG editor in it. I've tried the following code: <?php the_editor(null, 'body', null, false); ?> Then it's displayed. I don't know ...
2
votes
1answer
2k views

Hook the Keydown Event in the TinyMCE Post Editor

I would like to hook the keydown event in the TinyMCE Editor on the edit post admin page. I managed to hook the HTML content editor using the following code: jQuery('#content').keydown(function(){ ...
3
votes
1answer
408 views

Utilize TinyMCE hyperlink chooser outside of TinyMCE

Is it possible to use the "Insert/edit link" dialog box outside of TinyMCE? For example, if I wanted to add that dialog box to a generic button within a plugin settings form, is it possible to ...
0
votes
2answers
447 views

Moving/dragging a metabox removes TinyMCE's content

I added a TinyMCE editor to my plugin settings page, but once I move (drag) the metabox, editor's content get lost. (the TinyMCE editor is completely not editable until refresh) Here is how I added ...
1
vote
2answers
3k views

Show dialog box in TinyMCE plugin and use WordPress php functions in it

I'm adding a TinyMCE button to my plugin. So far, I've been able to add the button and call my editor_plugin.js file and it's command. Not an easy mission btw... I want this button to show a Dialog ...
1
vote
1answer
257 views

Inserting code to HTML view from a pop up initiated from visual view

I am trying to insert html into the HTML view.What i have done is to have tinymce advanced(a wordpress plugin) button that throws a popup and in it is all the necessary things to insert the html.The ...