[Plugin: Custom Field Template] Bug with CPT without editor, breaks textarea with tinymce AND thumbn
-
Yes this is a very VERY specific bug, how it happens :
– create a custom post type, WITHOUT support for editor (the idea behind is to use only the custom field template editor with plenty of boxes and beeing able to label them for user), but support for title and thumbnail
$supports = array('title', 'thumbnail' );
– create a custom field template, using a textarea with tinymce = true[description] label = Description type = textarea tinyMCE = true htmlEditor = false
The bugs :
1. no tinymce is shown in the textarea
2. the thumbnail upload is broken : instead of having a pop-up lightbox, it opens in a new page. Impossible to insert the thumbnail, to go back to the CPT, etc.This bug came with the upgrade towards wp3.3
What I tried :
1. Put false to tinymce in textarea :[description] label = Description type = textarea tinyMCE = false htmlEditor = false
=> Thumbnail still broken (and I can’t style the text-area)
2. Remove the htmlEditor = false and let tinyMCE = true (or false)
[description] label = Description type = textarea tinyMCE = true
=> This solves the image upload problem, but still no tinymce if I don’t activate the support for editor. Strange thing :
3. Change textarea for textfield : works, the thumbnail is not broken, but I’d like a textarea here, it’s a long description
As a matter of fact, it seams that removing the htmlEditor = false|true solves the thumbnail issue (which was my biggest one). Nevertheless, it looks like you can’t have the tinymce editor if support for editor is not granted when creating the custom post type. Might seams “logic” but it used to work with wp3.2
- The topic ‘[Plugin: Custom Field Template] Bug with CPT without editor, breaks textarea with tinymce AND thumbn’ is closed to new replies.