こんにちは。同じようなことをやろうとしているのですが、ここでの解決方法で対処できないので、
このトピックを使わせてもらいます。
環境:
modx = 0961
tinymce = 213,309,3101。
if($frontend==’false’ || ($frontend==’true’ && $webuser)){
を
if(1==1){
などにしてもだめで、
さらにプラグインの方の、
if(isset($forfrontend)||$modx->isFrontend()){
$frontend = 'true';
$frontend_language = isset($modx->config['fe_editor_lang']) ? $modx->config['fe_editor_lang']:"";
$tinymce_language = getTinyMCELang($frontend_language);
$html = getTinyMCEScript($elementList,$webtheme,$width,$height,$tinymce_language,$frontend,$base_url, $webPlugins, $webButtons1, $webButtons2, $webButtons3, $webButtons4, $disabledButtons, $tinyFormats, $entity_encoding, $entities, $tinyPathOptions, $tinyCleanup, $tinyResizing, $modx->config['editor_css_path'], $modx->config['tinymce_css_selectors'], $modx->config['use_browser'], $webAlign, null, null, $tinyLinkList, $customparams, $tinyURL);
} else {
$frontend = 'false';
$manager_language = $modx->config['manager_language'];
$tinymce_language = getTinyMCELang($manager_language);
$html = getTinyMCEScript($elementList, $modx->config['tinymce_editor_theme'], $width='100%', $height='400px', $tinymce_language, $frontend, $modx->config['base_url'], $modx->config['tinymce_custom_plugins'], $modx->config['tinymce_custom_buttons1'], $modx->config['tinymce_custom_buttons2'], $modx->config['tinymce_custom_buttons3'], $modx->config['tinymce_custom_buttons4'], $disabledButtons, $tinyFormats, $entity_encoding, $entities, $tinyPathOptions, $tinyCleanup, $tinyResizing, $modx->config['editor_css_path'], $modx->config['tinymce_css_selectors'], $modx->config['use_browser'], $modx->config['manager_direction'], $advimage_styles, $advlink_styles, $tinyLinkList, $customparams, $tinyURL);
}
をif条件をとりはずして以下のようにしてもだめでした。
$frontend = 'false';
$manager_language = $modx->config['manager_language'];
$tinymce_language = getTinyMCELang($manager_language);
$html = getTinyMCEScript($elementList, $modx->config['tinymce_editor_theme'], $width='100%', $height='400px', $tinymce_language, $frontend, $modx->config['base_url'], $modx->config['tinymce_custom_plugins'], $modx->config['tinymce_custom_buttons1'], $modx->config['tinymce_custom_buttons2'], $modx->config['tinymce_custom_buttons3'], $modx->config['tinymce_custom_buttons4'], $disabledButtons, $tinyFormats, $entity_encoding, $entities, $tinyPathOptions, $tinyCleanup, $tinyResizing, $modx->config['editor_css_path'], $modx->config['tinymce_css_selectors'], $modx->config['use_browser'], $modx->config['manager_direction'], $advimage_styles, $advlink_styles, $tinyLinkList, $customparams, $tinyURL);
一度は何かのぐあいでできていたと思ったのですが、現在、tinymceをインストールし直したりしてもだめです。
/mcpuk/connectors/php/のなかのconfig.phpがあやしいかもとか疑いだし、深みにはまってしまいました。
ブラウザは開くのですが、その中のファイル・画像が表示されないのです。
別画面でマネージャに入っていても、表示されません。
どこかで何かの設定がおかしいのでしょうか。
プラグインtinymceの設定ではテーマはcustomにしてます。
このトピックではtinymceの212での解決策だったようですが、他のバージョンでの解決策などあれば教えて下さい。