ethanj

Would I be correct in assuming this [editorIdentifier] => cwp tells me that cwp is the active? Changing my config to setOptions for cwp is giving the same result unfortunately..

The following gist is the Active config being used. https://gist.github.com/ethanjohnstone/a23a74aa04c15acd18680bf1af0b9a4e

ethanj

I've tried with the cwp config as well @nightjarnz but it also doesn't play ball.

nightjarnz

e.g. the CWP default sets another config as active one.

ethanj

I'm having trouble stopping TinyMCE from stripping the usemap property from an <img> can anyone see what I've done wrong here

  1. $editor = HtmlEditorConfig::get('cms');
  2. $editor->setOptions([
  3. 'use_native_selects' => true,
  4. 'extended_valid_elements' =>
  5. 'div[id|class|style|data-listid|onclick],' .
  6. 'iframe[allowfullscreen|src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],' .
  7. 'select[id|onclick],' .
  8. 'option[selected|value],' .
  9. 'area[shape|coords|href],' .
  10. 'map[name],' .
  11. 'ol[type|start], ' .
  12. 'ul[style],' .
  13. 'li[class|style],' .
  14. 'a[class|style|href|id|target|onclick|download],' .
  15. 'table[data-filter|data-page-size|align|class],' .
  16. 'th[data-class|data-hide|data-sort-ignore|data-sort-initial|colspan|rowspan],' .
  17. 'td[data-value|colspan|rowspan],' .
  18. 'input[type|value|class|size|id],' .
  19. 'form[method|action|id],br[clear],' .
  20. 'span[id|class|style|contenteditable|data-hash|data-dynamicclass|data-classid],' .
  21. 'img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align|carrot|data*]'
  22. ]);
null

the many-many-through relationship might work, if the hack doesn't

nicolaas

I think we have a fix .... [HACK] ... I will post soon!

muskie9

^ how you setup cms fields too (that only show when editing the ManyMany version of the object)