Closed (fixed)
Project:
Wysiwyg
Version:
6.x-1.x-dev
Component:
Wysiwyg Editor
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2008 at 04:36 UTC
Updated:
16 Aug 2009 at 10:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunAre those supported in TinyMCE 2.x?
Comment #2
sunFrom #273400: inserting code tags:
Well, it doesn't seem to me that
<code>is a supported editor plugin. If it was, then it would probably need a similar plugin configuration like, f.e. the advhr plugin (in wysiwyg_editor.plugins.inc):However, don't try to just exchange the strings of this snippet, because there is no "real" code plugin for TinyMCE yet. Even worse, the advanced theme ships with a "code" plugin - which is the well-known "HTML" button in the toolbar.
Regarding blockquote, I've found http://sourceforge.net/tracker/index.php?func=detail&aid=1498692&group_i...
Comment #3
aterchin commentedYeah the code button is misleading for sure when you first see it. I found a plugin for code tags, icode.
http://www.chronosight.net/view/2006/09/626-icode-plugin-for-tinymce.html
I dropped the icode folder in the wysiwyg/plugins directory tried adding it to the list in wysiwyg_editor.plugins.inc file as:
enabled it but im obviously missing a step as i couldnt get it working right.
Comment #4
sunThe iCode in
buttons' => array('iCode'must be lowercase.And you need to add this line
Comment #5
aterchin commentedYeah, thanks sun. that worked but then i'd have to make it see script tags and php tags and it's starting to become a nightmare when i think about it. i'll wait till someone smarter than me comes up with a proper updated plugin.
Comment #6
sunI just found out that 'code' as well as 'blockquote' are valid block formats and already implemented in TinyMCE's default advanced theme. I wasn't aware of that, as someone seems to have decided that those block formats shouldn't be listed by default in the profile configuration (back in times of tinymce module). So you just have to list them in the comma-separated block format list. However, my testing revealed one caveat: Those block formats can be applied, but TinyMCE (v2.x) seems to be unable to remove them once applied.
Comment #7
scottrigbyHi – seems this might be the right place to ask...
I'm using the current wysiwyg-5.x-1.x-dev.tar
I need to add some javascript to a few pages that I also want users to edit the rest of the page using the WYSIWYG.
The problem is my
tags are getting stripped. This conversation seems like there may be some answers and so I'm hoping someone can recommend a solution - not even the best one... just something that works. I tested without wysiwyg by the way, and all works well --- but with wysiwyg, the script tags magically disappear. Any advice or help would be really appreciated! :) ScottComment #8
scottrigbyI realize most of this doesn't apply, but could there be anything useful here?
http://drupal.org/node/51097
Comment #9
sun@scottrigby: This is a different topic, moving over to #294417: Disable client-side editor HTML filtering
Comment #10
quicksketchI'm using tinyMCE 3, and I'm not sure what affect this has on tinyMCE 2 (in regards to #6, where sun reports you can't unset blockquotes), but here's a patch that adds in blockquote. Works out of box for me.
Comment #11
sunAlthough this button is only available in TinyMCE 3, I committed this patch, because no one cares about a two year old editor release, and we have to sort out a way to differentiate buttons/plugins for different editor versions in the plugin API anyway.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.