tinymce

Tinymce editor Error

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Full featured example</title> <script type="text/javascript" src="../tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ m...

TinyMCE in Django Template

Using django-tinymce I have successfully embedded TinyMCE in the Admin before. Embedding it in a front-end form does not seem to work for me however. I have a form which is a modelForm. It doesn't add any extra fields ('comment' and 'statement' are the only fields used and they exist in the model). On the textarea field, 'comment', of t...

Overriding TinyMCE's Default Formatting

How can I override TinyMCE's default formatting for basic stuff like bold, underline, and strikethrough? Currently the generated HTML uses styled spans, which is normally fine. Unfortunately, in this situation I need to do some simple parsing and need the elements to be the old-style <b>, <u>, and <strike>. The following code is what ...

Tinymce setcontent a link an selected img

Hi! In Tinymce I select an image. I would like to create a link with this: var code = window.opener.tinyMCE.activeEditor.selection.getContent(); window.opener.tinyMCE.activeEditor.selection.setContent(code); but not work. If i select a text then work correctly! Please help me i dont understand that why??? ...

tinymce : Remove css styles from style attribute

I am trying to configure tinymce to not allow css styles in style attribute. I just want to allow one style which is text-decoration. Here is a similar problem http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=76101 . The valid_styles option is not present and I dont want to use regexp on my content, coz there got to be some or th...

TinyMCE and CakePHP

I am using the cakephp tinymce helper. I know I can change the themes from simple and advanced, etc. I'm wondering if it's possible to go further than that and explicitly set the different font, etc the user can choose? So if I only wanted the user to be able to use a paragraph tag and the pre tag? ...

Applying multiple CSS classes to same text in TinyMCE

Hi all! I am having some issues getting TinyMCE to be as flexible as I need it to be. In my editor (used in a cakePHP-based app) I am not allowing users to edit the html, so we are relying entirely on the WYSIWYG. Unfortunately, TinyMCE is currently not allowing users to apply two CSS classes to the same text. Whichever style is appl...

TinyMce Formatting problems

I recently put the use of TinyMCE in an application I am working on. Everything is working, but the Toolbar is shown on the bottom. I checked the documentation at. TinyMCE Configuration This doc shows how to configure the location of the toolbar given you are using Advanced mode and not Simple. I have confirmed that I am using the corr...

How do I remove all tinymce instances at startup?

I'm dynamically creating and destroying textareas for this purpose. However, when I create a textarea and then an instance of it in tinymce--then come back to the page again, it doesn't work. I've found that the solution is to simply remove any existing instance of that same name, but I was wondering if it's possible to just do it at sta...

Add template items in TinyMCE

I'd like to add "template items" in tineMCE editor. The template items act like a placeholder for dynamically inserted data. An example: Instead of writing: "Hi {firstname}, you are {years} years old." I'd like to insert a object instead of the "{firstname}" that gets replaced to "{firstname}" when saving against the server. It shou...

TinyMCE bug - @ symbol in link URL makes http://mce_host appear.

Hello, Have someone a resolution for that annoying problem ? Regards ...

How safe is it to accept a pre-defined set of non-harmful HTML tags from a request?

Hi guys, One of the first things I learned as a web developer was to never ever accept any HTML from the client. (Perhaps only if I HTML encode it.) I use a WYSIWYG editor (TinyMCE) that outputs HTML. So far I have only used it on an admin page, but now I'd like to also use it on a forum. It has a BBCode module, but that seems to be inc...

How to make tinymce work with iframe?

When I input <iframe> with its HTML Source Editor, it's just filtered. Is there an option to make it work with <iframe>? ...

tinymce wordpress copy and paste losing http:// prefix

when copying and pasting images in tinymce (in wordpress) the url of the image loses its prefix. is there some way to fix this. I am using wordpress mu 2.9.2 and tinymce advanced. ...

TinyMCE inserts a <script> tag pointing to themes/advanced/langs/en.js inside my text

There is a previous question to this issue but it has no posted solution. This is for a backend I didn't programmed but I'm mantaining right now and there's this issue. TinyMCE is initialized this way: tinyMCE.init({ mode: "textareas", theme: "advanced", plugins: "style,paste", theme_advanced_buttons3_add : "pasteword", ...

TinyMCE - image re-size handles disappear after re-size

After resizing an image in TinyMCE in Fire Fox, the re-size handles disappear. Is there a way to fix this? ...

TinyMCE - IE8 Error

I'm testing my page in a bunch of browsers and in IE 8 i get the following error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Timestamp: Mon, 20 Sep 2010 20:03:46 UTC Message: Invalid arg...

Getting textarea value in javascript

Iam using Tinymce Editor for creating some content.I used textarea for getting tinymce editor. For edting i have used this code <textarea id="page_content_id" name="page_content"><?php echo $page_content;?></textarea> So the saved value will be in tiny mce editor.If i add something to the editor how i can get the values in javascript...

How to safely sanitize input from TinyMCE in ruby?

Hi, I just added TinyMCE to a small CMS I built in Rails. I've been using Redcloth before to style user generated articles. Since I started using TinyMCE, I would like to also allow users to embed video (from youtube for ex) into their blog posts. I'm using the follow helper in the views: sanitize(text, :tags => %w(a object p...

How to get TinyMVC .NET class Library to work on ASP.NET MVC 2?

Hello SO, I am trying to implement the TinyMCE Spellcheck plugin that uses GoogleSpell. The thing is I am trying to install it in an MVC environment. I started by referencing the .NET class Library DLL (MoxieCode.TinyMCE) in my project. Then, I added this code to my web.config: <system.webServer> <handlers> <add name="TinyM...