WARNING: This e-mail has been altered by MIMEDefang. Following this
paragraph are indications of the actual changes made. For more
information about your site's MIMEDefang policy, contact
MIMEDefang Administrator <[email protected]>. For more information
about MIMEDefang, see:
http://www.roaringpenguin.com/mimedefang/enduser.php3
An attachment of type
application/x-javascript
and name
tiny_valid_elements.js
was removed from this email message as it constituted a security hazard.
If you require this document, please contact the sender and arrange an
alternate means of receiving it.
On Wed, 6 May 2009, Andreas Hartmann wrote:
> Cool – would that mean we can promote TinyMCE without any alterations to the
> schema?
I haven't seen any complaints after making these changes. I append my copy of
the file
src/modules/tinymce/resources/javascript/tiny_valid_elements.js
as an attachment. In addition, the file
src/modules/tinymce/resources/javascript/tiny_config.js
needs the appended patch.
Please test :-)
Rainer
*** tiny_config.js.~1~ 2009-03-19 18:07:33.000000000 +0100
--- tiny_config.js 2009-05-05 17:24:48.512445656 +0200
***************
*** 24,31 ****
--- 24,71 ----
currentURL = location.href.replace(/\?.*$/,"");
+ function myCustomCleanup(type, value) {
+ switch (type) {
+ case "get_from_editor":
+ // alert("get_from_editor Value HTML string: " + value);
+ value = value.replace(/<a (class="mceItemAnchor" )?name="([^"]+)"/gi,'<a $1id="$2"');
+ // alert("get_from_editor 2 Value HTML string: " + value);
+ break;
+ case "insert_to_editor":
+ // alert("insert_to_editor Value HTML string: " + value);
+ value = value.replace(/<a (class="mceItemAnchor" )?id="([^"]+)"/gi,'<a $1name="$2"');
+ // alert("insert_to_editor 2 Value HTML string: " + value);
+ break;
+ case "submit_content":
+ // alert("submit_content Value HTML Element: " + value);
+ // Do custom cleanup code here
+ break;
+ // case "get_from_editor_dom":
+ // alert("Value DOM Element " + value);
+ // // Do custom cleanup code here
+ // break;
+ // case "insert_to_editor_dom":
+ // alert("Value DOM Element: " + value);
+ // // Do custom cleanup code here
+ // break;
+ // case "setup_content_dom":
+ // alert("Value DOM Element: " + value);
+ // // Do custom cleanup code here
+ // break;
+ // case "submit_content_dom":
+ // alert("Value DOM Element: " + value);
+ // // Do custom cleanup code here
+ // break;
+ }
+
+ return value;
+ }
+
+
+
config = {
+ cleanup_callback : "myCustomCleanup",
/* enable customizable theme */
theme : "advanced",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]