tinymce

TinyMCE and Firefox 11

非 Y 不嫁゛ 提交于 2020-02-01 05:32:06
问题 As most of you know, Firefox 11 update was released few days ago. After the release I was notified that there was some strange behavior in our web app. We have multiple instances of TinyMCE on a single page and only the first instance works as it should. The other instances don't seem to be editable to the naked eye, but in fact changes made to the "other" instances will be saved on submit. After a nice google session I noticed other people had this same problem but in most cases the solution

Setting up line-height via TinyMCE

时间秒杀一切 提交于 2020-01-27 08:29:04
问题 Is there a way to give user possibility to easily changing line-height attribute of paragraph in tinyMCE editor? Something like its native "Font size" or "Format" <select> or anything else. I know I can use "edit CSS" functionality and set it up there. I'm looking for something more user-friendly. I can't find it anywhere. 回答1: As per my comment, Someone else was experiencing an issue similar to yours and a member of the TinyMCE forums provided a solution: http://www.tinymce.com/forum

Sortable div with TinyMCE inline

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 08:06:22
问题 The code posted by vijayscode (https://stackoverflow.com/questions/34850038/tinymce-4-not-working-with-sortable-jquery-divs/59896435#59896435) doesn't work for me. TinyMCE doesn't work even before I start ordering. Does sorting work with TinyMCE in when using inline mode? For example, if I add the inline: true option to this code ... TinyMCE is not loaded immediately http://fiddle.tinymce.com/33faab Can you show me a working example on http://fiddle.tinymce.com/ 回答1: You are really asking two

Sortable div with TinyMCE inline

只愿长相守 提交于 2020-01-25 08:06:06
问题 The code posted by vijayscode (https://stackoverflow.com/questions/34850038/tinymce-4-not-working-with-sortable-jquery-divs/59896435#59896435) doesn't work for me. TinyMCE doesn't work even before I start ordering. Does sorting work with TinyMCE in when using inline mode? For example, if I add the inline: true option to this code ... TinyMCE is not loaded immediately http://fiddle.tinymce.com/33faab Can you show me a working example on http://fiddle.tinymce.com/ 回答1: You are really asking two

Include TinyMCE plugins with Wordpress wp_editor?

試著忘記壹切 提交于 2020-01-24 12:19:33
问题 Currently writing a plugin for WordPress, this includes a TinyMCE plugin for the builtin editor of WordPress. However, when I print a TinyMCE editor at a custom admin page with: wp_editor( $content, $editor_id, $settings ); The editor does not come with the aforementioned plugins. How would I go about including them with wp_editor? Thank you. 回答1: This was just me being stupid. I created the WordPress menu BEFORE adding the TinyMCE plugin.. So for other people getting stuck on something this

Embedding YouTube video with new iframe embed code in TinyMCE

余生长醉 提交于 2020-01-22 19:24:06
问题 I tried the old embed code for adding YouTube videos into TinyMCE and it works fine. Some of the users may not realise they have to click on the old embed code option in YouTube embed code link to add it in. I want to make it easy for users and allow them to just copy the new embed code directly and paste it on TinyMCE and away they go. The new embed code looks like the following example: <iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/VvJ037b

Django Grappelli Tabular Inline add new row TinyMCE textfield not editable

早过忘川 提交于 2020-01-22 13:39:25
问题 I am using django Grappelli skin for my project. I have a ModelAdmin with tabular inline function. I use extra = 0 to prevent auto insert blank row, when the page is loaded. It works fine. Now, when I click on the + sign to insert new row, the row is loaded, but the tinymce textfield is not editable. Anyone know what is the reasons and how to solve this problem? After reading the document: http://django-grappelli.readthedocs.org/en/latest/customization.html#using-tinymce I notice: Using

TinyMce set text color of editor button

笑着哭i 提交于 2020-01-16 18:17:25
问题 I have a number of custom buttons which I want to style the text of each button to be different. However the 'style' option sets the style on the div not the button, so its not working. Here is my code to generate the button // Add a button for rank editor.addButton('rank', { text: 'Rank', tooltip: 'Highlight Rank', icon: false, style:'color:red;', onPostRender: function () { var button = this; editor.on('NodeChange', function (e) { if (editor.formatter.match('rank')) { button.active(true); }

Responsive filemanager in tinymce, directory settings

一个人想着一个人 提交于 2020-01-15 23:03:10
问题 I'm using this file manager for file upload in tinymce. File Manager Having some problem with the directory. I'm using tinymce 4. My filemanager folder is in " localhost/BAD/ " directory, I have a file named about.php which is in " localhost/BAD/admin/ " directory. Now I can upload image and see from that about.php file. My settings of tinymce is **external_filemanager_path:"/BAD/filemanager/", filemanager_title:"Filemanager" , external_plugins: { "filemanager" : "filemanager/plugin.min.js"}*

Create Custom Color Set TinyMCE

一曲冷凌霜 提交于 2020-01-15 07:51:26
问题 I have been able to create my own Font color picker for TinyMCE, but but the color palette is linked to the original color picker. What I am trying to do is make my custom color picker totally independent of the original one (so I can show both). Here is my current code, and this works, but the color palette is the same for both buttons: tinymce.create('tinymce.plugins.ExamplePlugin', { createControl: function(n, cm) { switch(n) { case "universityColors": var o = {}; ed=tinyMCE.activeEditor;