Hi,

I am having a issue with the WYSIWYG API. Tinymce or any other installed editor is not working with
the WYSIWYG API.

DEBUG INFO:
- Installed editors - Tinymce,Niceditor,Jwysiwyg
- Contents of the wysiwyg module directory:
1. Following Folders:
Editors,plugins,po,tinymce,jwysiwyg,nicedit
2. Following files:
CHANGELOG.txt,LICENSE.txt,README.txt,wysiwyg.admin.inc,wysiwyg.api.php,wysiwyg.info
wysiwyg.init.js,wysiwyg.install,wysiwyg.js,wysiwyg.module,wysiwyg.plugins.inc
- Scan page.tpl.php for existence of print $closure; - Yes Exists
- Client-side browser/user agent information - Have tested in Firefox, IE7
- Server-side OS information - Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.2
- default configuration with bold/italic buttons only
- default input format settings
- Earlier tinymce module was inabled that i have disabled now.
- jQuery version (jQuery update module is being used)

On enabling Tinymce the required JS for this editor get loaded and the textarea converts to editor.
If I enable the Tinymce module I can see the following JS on the page :

1. sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js
2.

function mceToggle(id, linkid) {
element = document.getElementById(id);
link = document.getElementById(linkid);
img_assist = document.getElementById('img_assist-link-'+ id);

if (tinyMCE.getEditorId(element.id) == null) {
tinyMCE.addMCEControl(element, element.id);
element.togg = 'on';
link.innerHTML = 'disable rich-text';
link.href = "javascript:mceToggle('" +id+ "', '" +linkid+ "');";
if (img_assist)
img_assist.innerHTML = '';
link.blur();
}
else {
tinyMCE.removeMCEControl(tinyMCE.getEditorId(element.id));
element.togg = 'off';
link.innerHTML = 'enable rich-text';
link.href = "javascript:mceToggle('" +id+ "', '" +linkid+ "');";
if (img_assist)
img_assist.innerHTML = img_assist_default_link;
link.blur();
}
}

3.

tinyMCE.init({
mode : "exact",
theme : "advanced",
relative_urls : false,
document_base_url : "/Xicom/drutubecms/websiteupgrade515/",
language : "en",
safari_warning : false,
entity_encoding : "raw",
verify_html : false,
preformatted : false,
convert_fonts_to_spans : true,
remove_linebreaks : true,
apply_source_formatting : true,
theme_advanced_resize_horizontal : false,
theme_advanced_resizing_use_cookie : false,
plugins : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
theme_advanced_buttons1 : "bold,italic,underline,justifyleft,justifycenter,justifyright,bullist,numlist,undo,redo,link,image,sup,sub,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
elements : "edit-field-bried-video-describ-0-value"
});

But when WYSIWYG is enabled (that time I disabled the Tinymce b/c the WYSIWYG Api don't require any other module) the textarea dosen't convert to editor and there is not any css/js related with the editor on the page html.

I know WYSIWYG API is an amazing module and it would definitely work for me too.

Any help in this regard would really help me out.

Thanks!!!

Comments

sun’s picture

Component: User interface » Editor - TinyMCE
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Moving my follow-up from the other issue here:

@bathyalgirish: The Drupal Tinymce module is obsolete. So is its output and loading behavior - which means that this information makes no sense here. Did you setup a wysiwyg profile for at least one input format? Or was the profile auto-generated after switching from tinymce module? If it was, could you please test whether it works after you removed all wysiwyg profiles and created a new, simple one for your first (default) input format?

sun’s picture

Title: WYSIWYG API is not working for me!! » Editor library is not loaded

Better title.

Please also read the additional documentation pages that are linked on the project page: http://drupal.org/project/wysiwyg

drupalhooked’s picture

Hello Sun,

Thanks for your reply.

Yes, I had already setup WYSIWYG profile. I also tried removing all existing profiles then configured a new one still the Editor is not being loaded. I also noticed one strange thing actually I have different node types let say Video,Images and Audio I noticed that the editor is being loaded for the image node type but not for the video. I think this is me who is missing something unfortunately overthere. Could you please figure out something that is causing this problem?

I am greatful to you for the support provided.

Thanks a lot!!!

Gaurav,

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

If the editor displayed for some content-types but not others, then some other module is hi-jacking Wysiwyg API. Have a look at #359936: FAQ. If that does not help, you have to debug yourself and find the cause. Disabling other modules might help.