tinymce

TinyMCE hint text

为君一笑 提交于 2019-12-10 19:53:47
问题 I'm using Remy Sharp's jQuery plugin to display hints in text boxes. I'd like to do the same with TinyMCE - display a hint, like "Type some text here." , and when the user focuses the TinyMCE editor, that text should go away. If the editor is empty (no text entered), then on blur the text should be visible again. Is there a jQuery plugin that is capable of doing this? Or is there an API in TinyMCE that I could use for this functionality? 回答1: TinyMCE should pass through any content already in

Error: No module named tinymce

ぃ、小莉子 提交于 2019-12-10 18:40:23
问题 I followed the installation guide for django-tinymce and Using TinyMCE in Django, installed django-filebrowser, django-grapelli and django-tinymce with pip in virtual environment. Fragments of settings.py: INSTALLED_APPS = ( ... 'django.contrib.admin', 'tinymce', ) TINYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js' TINYMCE_JS_ROOT = MEDIA_ROOT + 'js/tiny_mce' TINYMCE_DEFAULT_CONFIG = { 'plugins': "table,spellchecker,paste,searchreplace", 'theme': "advanced", } urls.py: urlpatterns =

TinyMCE add custom control for windowManager

独自空忆成欢 提交于 2019-12-10 18:25:34
问题 My goal is to create a custom control to be used in the dialog's body opened width editor.windowManager.open . I found the standard controls source class on github, but I can't find a way to add a new control through a plugin. https://github.com/tinymce/tinymce/tree/master/js/tinymce/classes/ui After hours of searching I couldn't find any documentation, tutorial or stackoverflow response. I then tried to include the control declaration in the plugin but I get a ReferenceError: define is not

Is this possible to set the language in tinymce editor in javascript?

怎甘沉沦 提交于 2019-12-10 17:32:59
问题 I have using tinymce text edit for my asp.net applications.Now i have added language pack.now i want to set the language pack for the text editor programatically.And also hide the language pack bar from the visible state. for example : i want to programatically set the language of the text editior is hindi.Pleasr guide me to get out of this... whenever user clicks translation Button in my web form , i have initialized this string variable.then i want to set the tinymce editor language

How to reset css in middle of html document?

♀尐吖头ヾ 提交于 2019-12-10 17:08:30
问题 I wonder if there are any possibility to reset css in middle of page? I have main style, but in one area I would like to use style from tinyMCE generated source. So in tinyMCE source are elements which in editor looks like default browsers style (or like user wants), but in other pages uses style from my main css and from it self inline style. So I get mix of both ant it looks crappy. And I have no idea how to reset main style,.. without iframes. Thanks 回答1: You mean, have a set of CSS rules

TinyMCE: How to disable code rewriting?

送分小仙女□ 提交于 2019-12-10 16:56:41
问题 I'm trying to prevent TinyMCE (in Joomla) from rewriting code (adding, removing, moving tags and attributes, etc). I don't want to setup every tag, just simply stop TinyMCE from changing my code. The TinyMCE configuration: verify_html:false; doesn't work for me and toggling to the source code view or clicking show/hide still causes the editor to modify my source code. 回答1: Go into the configuration of the tinyMCE plugin in Joomla and disable the code cleanup. 回答2: Go to: extensions (Should be

tinyMCE options

家住魔仙堡 提交于 2019-12-10 16:06:51
问题 How can I toggle the readonly state in an initialized tinyMCE container? Whilst the tinyMCE is initialised in a common javascript file, the option I want to change is specific to the logic of an individual page, and changes based on user's input via a checkbox. This are some of the things I tried and all resulted in failure: http://pastebin.com/JEn2fyE6 回答1: I just managed to do it this way: Having the textarea set with id intro I do this if($('.disabled_check').is(':checked')) { $('#intro

TinyMCE custom button with popup

旧城冷巷雨未停 提交于 2019-12-10 16:01:54
问题 I'm adding a button to my TinyMCE setup like this: setup : function(ed) { // Add a custom button ed.addButton('mybutton', { title : 'My button', image : 'mybutton.jpg', onclick : function() { // Add you own code to execute something on click ed.focus(); ed.selection.setContent('Hello world!'); } }); }, I wan't to know if it's possible in the onclick event to open a popup and get some input from the popup. Which then can be pasted into the editor. Exactly like if you're doing a plugin i just

Multiple instances of tinyMCE on fields with same ID

雨燕双飞 提交于 2019-12-10 15:54:38
问题 We have multiple copies of the same form (jobs for a resume, only hidden "job_id" field changes on each) and we want to use tinyMCE for the description textarea field. On each form the description field is called "inputDec". TinyMCE seems to fail after one use, despite the fact that each of the forms are different with unique names. Multiple instances are no problem, but are they possible when the ID is the same -- even if the forms are different -- all on the same page. Thanks in advance for

TinyMCE not working - even with their example?

社会主义新天地 提交于 2019-12-10 15:50:38
问题 ISSUE: I am attempting to use TinyMCE 4.0.12. But couldn't get it to work, it just makes my text areas disappear altogether. What i have done so far: I even copied their example code exactly from their page, and it doesn't even work with that. I have extracted all of the files to "js/tinymce/" Is there something obvious I am missing? Fiddle: http://jsfiddle.net/cg3e8/ JS CODE: <script type="text/javascript" src="js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init