tinymce

TinyMCE “paste button” does not work

你。 提交于 2019-12-09 15:59:09
问题 My question about TinyMCE editor. In IE brower it works fine. But when I paste something in FF & Chrome I'm receiving the message: "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead." I've not found any documentation to solve this problem! I need help ,Thanks! 回答1: I'm a little late to this, but I was having the same problem. I did some digging, and this configuration worked for me. tinyMCE.init({ selector: "textarea", language:

TinyMCE 4 add drop down menu to menu bar

自作多情 提交于 2019-12-09 11:59:36
问题 I need to add another drop down menu next to "Tools" item in TinyMCE 4: The closest solution I found was this: // Adds a custom menu item to the editor that inserts contents when clicked // The context option allows you to add the menu item to an existing default menu tinymce.init({ ... setup: function(ed) { ed.addMenuItem('example', { text: 'My menu item', context: 'tools', onclick: function() { ed.insertContent('Hello world!!'); } }); } }); But it only adds an item to the already existing

Dragging: Replacement of the data

时光总嘲笑我的痴心妄想 提交于 2019-12-09 11:15:36
问题 I got a webpage with some html elements including a textarea and an embedded contenteditable iframe (a rte). Using this code i manage to catch the draggesture event on the main page and set the text/html-data jQuery(document).bind('draggesture', function(event){ event.originalEvent.dataTransfer.setData('text/html', 'my_data'); }); Now, when dropping in a textarea on the main page 'my_data' gets dropped. Dropping in the contenteditable iframe drops 'my_data' too. But i got three issues here

TinyMCE client validation problem

核能气质少年 提交于 2019-12-09 04:43:00
问题 I have problem with TinyMCE editor. I have form with few text fields and textarea (tinymce), and enabled client validation. When I click save button validation occures on all text fields, but it takes 2 click to validate tinymce content. Furthermore, validation shows message only when field is empty, or if condition is not satisfied (just for test causes, max 5 characters can be entered), but when I enter right number of characters ( less then 5 ), error message stays. Here's code sample: <

How to Cut, Copy and Paste from JavaScript to a User's Clipboard

旧巷老猫 提交于 2019-12-09 03:38:42
问题 There are multiple similar questions in stackoverflow which deal with how to Cut, Copy, and Paste from JavaScript (in response to a button press, for instance) without the user having to use CTRL+X, C, or V. All these answers suggest either that you are insane for wanting to do this and that users should never have their clipboards violated in such a profane manner, or to use the hack of an invisible Flash movie (which has questionable support). However, Google Docs does this, and does not

How to make TinyMCE Responsive

♀尐吖头ヾ 提交于 2019-12-08 23:08:10
问题 I am making a Responsive site using the foundation framework and TinyMCE breaks the format when the page is scaled down(it's not responsive). How do I make TinyMCE responsive? 回答1: The TinyMCE editor can be made responsive by using css media queries. Simply add css rules that set the width property of table.mceLayout and the tinyMCE textareas. You will need to enforce these css rules using !important because they would otherwise be overwritten. E.g., I use css similar to this: /* on mobile

Proper Way Of Modifying Toolbar After Init in TinyMCE

╄→尐↘猪︶ㄣ 提交于 2019-12-08 19:21:04
问题 I am extending a cloud-hosted LMS with javascript. Therefore, we can add javascript to the page, but cannot modify the vendor javascript for different components. The LMS uses tinyMCE frequently. The goal is to add a new button on to the toolbar of each tinyMCE editor. The problem is that since the tinyMCE modules are initialized in the vendor's untouchable code, we cannot modify the init() call. Therefore, we cannot add any text on to the "toolbar" property of the init() object. So I

What is the TinyMCE jQuery Package?

主宰稳场 提交于 2019-12-08 17:36:06
问题 I've been asked to use the TinyMCE editor in a project. On the download page, there's a main package, and then a jQuery package This package contains special jQuery build of TinyMCE and a jQuery integration plugin. tinymce_3_3_7_jquery.zip What is the jQuery build of TinyMCE? Is it just TinyMCE with the same features built on top of jQuery? Is it standard TinyMCE but with some kind add-on that makes manipulating TinyMCE with jQuery easier? Something else? A quick internet search told me "it's

Need some TinyMCE jQuery help

泄露秘密 提交于 2019-12-08 17:26:33
问题 I'm trying to get some textarea formatting going on my site using TinyMCE... I'm a little new to integrating this kind of thing and could use some help. I'm using their jQuery plugin 3.4.x found here. I can't seem to get any kind of effect on my textareas! They still look like the regular textareas from before integrating this code. I'm following this tutorial. Here is the script I use which is in my header (the script_url is correct): <script src="tiny_mce/tiny_mce.js"></script> <script type

How to configure TinyMCE to allow block-level elements inside anchor (a) tag?

懵懂的女人 提交于 2019-12-08 16:29:25
问题 Here is my scenario: I want to be able to create content like <div> <a id="supportTile" class="contentModule" href="/Support"> <h2>Support</h2> </a> </div> However tinyMCE strips it to <div> <h2>Support</h2> </div> My configuration is currently like this (using TinyMCE jQuery): script_url: _applicationRoot + "Scripts/tiny_mce/tiny_mce.js", theme: "advanced", plugins: "paste,filemanager,imagemanager,advimage,inlinepopups", ... extended_valid_elements: "img[!src|border:0|alt|title|width|height