wp-editor in theme settings doesn't work after last update 2.5.7
Hi)
I use wp-editor option in my theme settings:
And it worked.
After last update 2.5.7 wp-editor doesn't work:
tinyMCEPreInit is not defined
Please help. Thanks)
@RodalErmakov Please show the contents of the tinyMCEPreInit here.
Are you developing locally? Can you somehow give me access to your setup?
Yes, I've sent you (to:[email protected]) an access to my wordpress site. Thanks)
@RodalErmakov Problem is reproduced. Thanks.
Fix to come soon.
Thank you very much)
On Mon, Jul 4, 2016 at 1:08 PM, Andrei Glingeanu [email protected] wrote:
@RodalErmakov https://github.com/RodalErmakov Problem is reproduced. Thanks.
Fix to come soon.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ThemeFuse/Unyson/issues/1705#issuecomment-230229394, or mute the thread https://github.com/notifications/unsubscribe/ANph7FcPpxNV27xImkp4SSiDbabx7klVks5qSL91gaJpZM4JEEg7 .
@moldcraft The problem here is once again because we don't have wp-editor anywhere else besides the popup. In this case it doesn't know it will have to enqueue wp-editors static.
The temporar fix to this problem is to temporary add a hidden wp-editor anywhere in your Theme Settings. It doesn't have to be hidden, you should hide it just if you don't want him to be around.
This will do the trick.
Frankly, there should be a better way of doing this but I don't have time to get to this now.
We should be ready to close.
Ok, thanks)
On Mon, Jul 4, 2016 at 1:23 PM, Andrei Glingeanu [email protected] wrote:
The temporar fix to this problem is to temporary add a hidden wp-editor anywhere in your Theme Settings. It doesn't have to be hidden, you should hide it just if you don't want him to be around.
This will do the trick.
Frankly, there should be a better way of doing this but I don't have time to get to this now.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ThemeFuse/Unyson/issues/1705#issuecomment-230233399, or mute the thread https://github.com/notifications/unsubscribe/ANph7NM2pyfyDs8pmVTrRkcjShtClJR9ks5qSMMdgaJpZM4JEEg7 .
The problem here is once again because we don't have wp-editor anywhere else besides the popup
Option-type popup? It does enqueue for inner options https://github.com/ThemeFuse/Unyson/blob/v2.5.7/framework/includes/option-types/popup/class-fw-option-type-popup.php#L34
@moldcraft Addable popup. It also does enqueue for inner options but it doesn't worked, for some reason.
It does enqueue https://github.com/ThemeFuse/Unyson/blob/v2.5.7/framework/includes/option-types/addable-popup/class-fw-option-type-addable-popup.php#L31
So why it doesn't work?
Steps to reproduce
Add in {theme}/framework-customizations/theme/options/settings.php
$options = array(
'p' => array(
'type' => 'addable-popup',
'popup-options' => array(
'w' => array('type' => 'wp-editor'),
),
),
);
@moldcraft This doesn't work. I have to add every time one more wp-editor in TS in order to make it working. Not sure why. Maybe the check is not correct.
I didn't say that is the solution.
https://github.com/ThemeFuse/Unyson/issues/1715
25a102a
Please test again https://github.com/ThemeFuse/Unyson-Extensions-Approval/issues/232