I tried following command of tinyMCE
tinyMCE.execCommand('mceRemoveControl',true, editor_id);
for removing control from destroyed editors.
Now when new editors are loaded via ajax call (in hidden form), all other input fields in the same page becomes disable in IE8. However if editors are loaded in visible form it works well.
For tinymce 3.2.x, use the following to remove tinyMCE instance in IE8
tinyMCE.remove(editor); //editor is instance of tinymce editor and not editor id
This will fix "Permission Denied" error without disabling other input fields in the same page.
Related
I'm having trouble customizing the TinyMCE in OpenedX Devstack. Normally I didn't have any problems in front-end-course-authoring TinyMCE editor, but when I installed the 'front-end-lib-content-components' app for customization, the data didn't show up in the editor. I did not change the props, they are the same as the default ones.
(click for larger images)
I've used TinyMCE in the past but I've been away from it for a while. I set up a page with the basic implementation from the dashboard on tiny.cloud. It works great with one small exception.
The text editing area is closed when it loads. They only way I can get it to open is by adding the tinycomments plugin and clicking add. When I do so the text from the underlying textarea element shows in the editor as expected. The text editing area displays as long as the comment editing box is displayed.
I've dug for a setting to change this behavior but was unable to find it. I've also tried removing plugins and toolbar and stripped it down to just the 'selector' tag. Results are always the same in Firefox and Edge.
Can anyone help?
On the tinymce editor there is this code
// Theme options
"styleselect,formatselect,fontselect,fontsizeselect",
Are this select boxes
styleselect,formatselect,fontselect,fontsizeselect
part of a plugin or are they in a separate .js file.
I solved it this way.I opened
/var/www/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js
and i knew what advanced control was named for instance theme_advanced_blockformats:
This is the control with the block formats.To change their display names i put in this code
theme_advanced_blockformats : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
and it worked.
There is that topic on tinymce website on theme_advanced_styles which serves as an excellent example http://www.tinymce.com/wiki.php/Configuration:theme_advanced_styles
I followed django-tinymce document configuration step by step and finally can see tinymce editor in django-admin pages.
But when I click Image button, the popup window is blank. And the title of popup window is '{#advanced_dlg.image_title}' like something wrong about parse.
The HTML view button is the same.
I know that 'document.domain' may solve it, but I set 'document.domain' is no help to above.
Is the associated tinymce plugin activated in your tinymce config?
{#advanced_dlg.image_title} looks like the plugin (and the language files) have not been loaded.
You amy use Firebug or any other developer web tool with a console and type in the following to find out which plugins have been loaded:
tinymce.editors[0].plugins
I am creating a plugin for TinyMCE, which is basically a form that has a textarea in it. I want the user to be able to input formatted text in that textarea, using the TinyMCE editor. The problem is that I'm not able to 'enrich' the textarea element inside the dialog.htm file in any way. Does there exist a way to do such a thing?
Thanks in advance,
Tomor
I found a quick fix. I managed to put the editor in an iframe, following the suggestion in this post:
http://www.tinymce.com/forum/viewtopic.php?pid=84668#p84668
It seems a bit messy, but it works.