Active
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2010 at 09:27 UTC
Updated:
9 May 2011 at 22:09 UTC
I'm writing a generic plugin and I need to specify extended_valid_elements for TinyMCE. I've looked in the wysiwyg_api.php file and extended_valid_elements are specified in the example. However, I can't seem to get TinyMCE to read it. I took a look at editors/tinymce.inc where extended_valid_elements is merged and the native plugins never get there.
Bug? As designed? User errror?
Comments
Comment #1
jseffel commentedAs a sidenote, I did this instead:
Comment #2
twodHmm, both cross-editor "Drupal plugins" and native plugins' extended_valid_elements should be handled by the same code.
Can you post your hook implementation so I can test with it?
Perhaps this is related to #372165: TinyMCE 3: extended_valid_elements merged wrongly?
Comment #3
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.
Comment #4
decipheredI can also confirm that Drupal plugins do not support extended_valid_elements, the problem is that
wysiwyg_tinymce_settingsloops through$config['buttons'], which in my case the primary keys it returns aredefaultanddrupal, meaning that the following code doesn't grab the settings from the Drupal plugins:Thanks for the temporary workaround jseffel, although I haven't tested it yet, but please in future try to follow up on issues so they can be resolved officially.
Cheers,
Deciphered.