tinymce

Render the presence of a <script> tag in TinyMCE

Hi, I managed to get TinyMCE to keep my <script> tag in the source, so it is no longer stripped as an invalid tag. However, in edit mode, it doesn't render anything. The script tag is there in the html view, but it's just a blank line in edit mode. Instead, I want tinyMCE to render anything instead of nothing. Even if it is just simple...

Django Admin: Add TinyMCE to particular TextField only?

Hello, I have set up TinyMCE to work with the Admin panel (as per the instructions in the Django Docs http://code.djangoproject.com/wiki/AddWYSIWYGEditor ) The problem is that I have Inlines and other text areas within my model for which I don't want TinyMCE to render Does anyone know how to set TinyMCE to only load for particular fiel...

How to use customized tool bar in tiny mce?

Hi All, I'm using tiny mce in one of my projects and client do not want to use the Horizontal tool bar of tiny mce. He wants a centralized custom tool bar from where user can control all the properties like text color, type of text, size, back grounds and every thing that is needed to do while designing a web page using templates. I con...

How to set/unset throbber in TinyMCE using jQuery plugin?

Hello. I'm trying to manually set throbber on TinyMCE editor using jQuery plugin. Tried like that: $('textarea.tinymce').tinymce().setProgressState(1); but no luck - Firebug says only: 1 and nothing happens. setContents() works just fine. How to show/hide the throbber? ...

tinymce: rich text mode, how does it work

I want to understand how tinymce functions. the rich text editor contains an html document within an iframe. how are the nested DOM elements inside editable, In other word how am I able to type inside a <div> or a <p> layer when there is no textarea or input field involved (at least I dont see any)? are the elements converted to input ...

Wordpress-like configuration for TinyMCE in Drupal

I am using Drupal's WYSIWYG module, and i have added the latest TinyMCE and have configured it succesfully. Now I would like it to display its buttons and toolbars precisely the way Wordpress displays them. How should I proceed from now? ...

Getting all tinymce content in post method

I have a xml file with data <ul> <li><info>CSS text formatting </info></li> <li><info>Text loaded from a XML</info></li> <li><info>Scrolls with easing</info></li> </ul> For editing the content i have used tinymce editor.For editing i am parsing the xml file and putit in a textarea that is for timymce edtor.In the editor i am get...

Adding Custom button to tinymce editor

when we giving hyperlink to a text <a> tag will automatically assigned to the text.Like that how i can giving my own tag to the text.So i need a button the toolbar and when i selecting that button a custom tag will automatically added to the selected text. ...

tinymce adobe air

Is it possible to get tinymce working inside Adobe air? I found this tut but it is out of date and no longer works with current versions. Normal tinymce produces these errors: 1. TypeError: Result of expression 'g.base_uri' [undefined] is not an object. 2. TypeError: Result of expression 'tinyMCE.init' [undefined] is not a function. ...

tinyMCE - Can you configure an editor height below 100px?

Hi, I am not all that familiar with TinyMCE, but I cannot seem to configure it with a height below 100px. I've tried and it seems to always set it as 100px any time it goes below. I only need a few of the buttons and the editor window will likely never go beyond one line, so I am trying to reduce a bit of interface clutter. ...

problem with extended_valid_elements and custom elements in tinymce

I have used extended_valid_elements : "info,second,tittle,defalut", custom_elements: "info,second,tittle,defalut", for adding new tags to tinymce editor.The contents in tinymce editor is something like <tittle>contents here </tittle>.i can save the content as it is in both browser.when i am adding external css for editor due to custo...

Extending TinyMCE Wordpress Plugin with more plugins

I want to extend TinyMCE Advanced Wordpress Plugin with one of the plugins that is written for original tinymce editor package (http://tinymce.moxiecode.com/). That plugin is imgmap and I can find some steps (www.code.google.com/p/imgmap/wiki/TinyMCE_setup) to setup this plugin with original tinymce editor, but tinymce advanced wordpress...

Adding functionality to a custom tinymce button

I Have created custom tinymce button using the code setup : function(ed) { ed.addButton('Tittle', { title : 'Tittle', image : './images/T.jpg', onclick : function() { ed.focus(); ed.selection.setContent('<tittle>' + ed.selection.getContent() + '</tittle>'); } }); }); When i click ...

tinymce inst.directionality

Hi, I am stuck with an tiny issue with the tinyMce, and this is very urgent. In very brief, from tinyMce callback I get an tinyMce instance. Now I want to use this instance to set text-direction from "ltr" to "rtl" on the fly. But I don't seem to find and set the required property. Following is what I'm trying to do : $('textarea.tinym...

Getting selected html content in tinymce editor

I have created a custom button using this code setup : function(ed) { ed.addButton('Tittle', { title : 'Tittle', image : './images/T.jpg', onclick : function() { ed.focus(); var c = ed.selection.getNode().nodeName; if(c!="TITTLE") { ed.selection.setContent('<tittle...

Applying css to a text while showing in tinymce editor

I have a xml file with content <ul> <li><info>Some text here</info></li> </ul> I have parsed the xml file and show this in a page.info is a css class.In the page the text showing with css.When i am editing the content in tinymce editor how i can apply the css in the editor.In the editor the text is showing like <div mce_name="info">...

Removing a text from tinymce editor using javascript

I have a text <info>SOME CONTENTS GOES HERE</info> How i can remove this text from the editor when I click on a button (custom button) using javascript function. I used this code: dom.remove(dom.getParent(selection.getNode(), 'info')); But it is showing an error. Is there any solution? Thanks in advance. ...

Problem with <p> tags in tinymce editor

When i editing some content using tinymce editor an unwanted empty <p> </p> is saving at beginning and ending of the content. How i can remove this thanks in advance ...

how to use tinymce with images on my website

i have tinymce embedded in my website, so if users want to edit content, then can click on an "EDIT" link and it brings up the content in tinymce editor. when they click "Save", i save the html to a database. this works perfect and avoids them calling me when they need content changes as they can go in directly and next time they reloa...

saving TinyMCE contect via ajax as part of a larger form

I have a form, well its not really a form because its not wrapped in form tags because I use jQUery to grab the values of each input and pass that off to my ajax page for database processing. My problem is that I have a <textarea></textarea> that is pimped out by TinyMCE, How on earth do I grab the content inside the editor so I can sen...