tinymce

Why is my TinyMCE hidden textarea acting up?

I have about 7 textareas on a web page, all of them are rich text editors using TinyMCE. However at page load only 1 of them is visible and the rest of them hidden. The user can click a 'show' link which would display the remaining textareas one by one. However, I have a weird problem. All the textareas are setup like this: <textarea c...

Prevent TinyMCE/Internet Explorer from converting URLs to links

I'm using TinyMCE to provide users the capability of simple text formatting (bold, italics, lists) on a textarea form field. Everthing is working properly except that in Internet Explorer (8 but I've read it happens on earlier versions), when users type a URL (e.g. www.google.com) it is automatically converted into an HTML link in the T...

Can't post twice from the same AJAX TinyMCE textarea

I've a list of elements editable via a simple AJAX/jQuery edit button, which works great. But when I try editing the same field a second time it doesn't want to play ball. EDIT - AJAX returns a tinyMCE textarea containing content from MySQL SAVE - AJAX posts tinyMCE contents to MySQL and displays posted content EDIT (again) - Returns t...

trying to submit rich text editor content in asp.net mvc and getting "potentially dangerous Request.Form value was detected"

I am using TinyMCE in asp.net mvc and getting the error message "a potentially dangerous Request.Form value was detected" when trying to save the text from the TinyMCE editor. I set ValidateRequest="false" both in web.config and on the page. Any ideas? ...

Community Engine and tiny mce: undefined local variable or method error

I did something that caused this error when loading the home page: undefined local variable or method `javascript_include_tiny_mce_if_used' I'm basically at the beginning of my project. I'm using Rails 2.3, and worked through debug issues and got the home page and other user profile loaded fine. I'm working on adding another use case u...

TinyMCE - external toolbar position

Hello folks, I am trying to work with TinyMCE in creating a multi-textbox, click-to-edit type graphical content editor. I have got TinyMCE to the point where I can add and remove them, position and size them, click to edit them, and so forth - but one thing is bothering me and that is the toolbar. I have an external toolbar that I'm tr...

Prevent TinyMCE from converting linebreaks

I want to prevent TinyMCE from converting linebreaks (pasted from notepad for example) into <br>'s. Thats because I want to post code snippets inside <pre> tags, and I don't want to have <br>'s in there. I already tried several TinyMCE settings in the config without success: force_p_newlines : false, force_br_newlines : false, remove_l...

tinymce displays raw html code and no Buttons for one user in IE7 , 4 others users have not problems. If that user uses Foxfire it works perfectly.

I have 5 users (3 locations) using the pages that have Tiny_MCE text areas. I receive No Errors and it works Perfectly on the other 4 machines running IE7 This would indicate there is No JavaScript Errors. One user only is seeing the raw html code and no buttons at all. I suspect it must be some IE setting that is wrong. It does not...

VML/SVG Editor in an HTML Page

I have integrated various WYSIWYG HTML editors over the past few years, but I think I have hit a brick wall on this one. We need a way for people to edit text that turns into VML/SVG when rendered, but remains editable, with minimal styling such as bold, italic, font face and size, and if possible, ability to create a text region anywhe...

In Email, Image (img) Source (src) Tags are rewritten as relative links. How to fix?

I'm working on sending out an html based email, and every time it sends the image src tags and some of the anchor href tags are modified to be relative url's. Update 2: This is happening between when the body of the email is generated and sent and when it arrives in my inbox. Update: I am using Postfix on a LAMPP server. In addition,...

tinymce and Jquery UI dialog working nicely

I'm having some problems with Jquery UI Dialog and TinyMCE. Passing data to a text area works well with UI Dialog and Jquery. So setting data in text area like this works fine: $("#MessageDialog #messageDto_Body").val(messagedata.Body); $("#MessageDialog").dialog("open"); When I attach a tinyMCE editor to the text area...

How do you programatically remove (not disable) a button from TinyMCE?

I can disable the table button using this: tinyMCE.activeEditor.controlManager.get('divId_table').setDisabled(true) but what I'm interested in is actually hiding it. Any idea on how to accomplish that? Thank you! ...

TinyMCE: Using CSS class attributes with the formatselect-dropdown formats.

I would like to customize the formats in the TinyMCE formatselect dropdown to support css class attributes. Example: If would like to be able to select <h2 class='foo'> instead of just <h2> as format in the formatselect dropdown. Does anyone here have an idea how I could do this? ...

TinyMCE wraps my text in <p></p>. Can I avoid this?

Hello everybody. I am using TinyMCE (http://tinymce.moxiecode.com/) in a .NET page. Whenever I load a text myTMCE.value=mycontent; I can see that my text gets wrapped in <p></p>. This is not desirable for me, so I am trying to avoid it. Trying to initialize in <script> tinyMCE.init({ force_p_new...

Why is ValidateInput(False) not working?

I am converting an application I created using webforms to the asp.net mvc framework using vb.net. I have a problem with one of my views. I get the yellow screen of death saying "A potentially dangerous Request.Form value was detected from the client" when I submit my form. I am using tinymce as my RTE. I have set on the view itself ...

how to get the image inserted from the tinymce editor ?

Hi, I am trying to use the tinymce text editor, but am not being able to get the contents of the editor using jQuery , and also if I use the simple post method to get the value I get the text, but am not getting the image? The code I tried using jQuery was: $(document).ready(function() { $("#save").click(function() { $....

TinyMCE inside hidden div are not displayed as enabled when we put the div visible

I am having an issue with tinyMCE (WYSIWYG editor). I am actually adding the textarea inside a HTML element like a DIV which is currently having the style attribute "display:none". When I am changing the DIV display style to visible the tinyMCE editor is shown as disabled. Important Note: The setting which is causing the issue is the ...

django-cms, django flatpages, tiny mce not displaying

Hello, I've implemented both django-cms and flatpages, but can not get tiny_mce to display in either. urls.py (r'^tinymce/', include('tinymce.urls')), from django.conf import settings if settings.DEBUG: urlpatterns += patterns('', (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root'...

Suggestions for making an offline version of an online form?

I work for a school district in which the teachers submit their lesson plans to their principals online. They do this using an online form I wrote using PHP/MySQL and it uses TinyMCE for its textareas. One of the major features that was requested was for teachers to be able to save their incomplete forms as drafts to submit later. This ...

TinyMCE: Customize style-names in styleselect-menu

Let's say I have a CSS class named foo but would like it to be shown as foo (1) in the TinyMCE styleselect-menu (one of the default buttons available in the advanced theme). I tried using the class_filter option to do this, but that doesn't seem to work. How would you solve this problem? ...