Open webiflex opened 9 years ago
Thanks for the heads up, Im looking into this now
Can confirm I'm experiencing this issue too - any update?
Blocks I've created using non-wysywig seem to be unaffected by this.
Ok - I think I've sussed the root of the issue, although some who knows what they're doing will have to change the core plugin code and submit to the repo: (note: I'm currently working on the plugin as per the file uploaded on the C5 thread as the Github one wouldn't install - see discussion for details).
According to the 5.7 docs here https://www.concrete5.org/documentation/developers/5.7/interface-customization/rich-text-editor/embedding-rich-text-editor/
"outputStandardEditor takes two parameters. The first is the name of the form element, and the second optional parameter is any content you want to appear in the text area."
If you go into your created block's edit.php file
Currently DC is outputting fields that look like this:
<?php print Core::make('editor')->outputStandardEditor('field_2_wysiwyg_content'); ?>
and change these lines to:
<?php print Core::make('editor')->outputStandardEditor('field_2_wysiwyg_content', $field_2_wysiwyg_content); ?>
The wysiwyg fields will work :-)
Created simple block with WYSIWYG Editor field and block is created ok. Add new instance of block to page and update WYSIWYG Editor which is saved correctly. When attempt to edit block the WYSIWYG Editor contains no data.
concrete5 Version
Core Version - 5.7.4.2 Version Installed - 5.7.4.2 Database Version - 20150504000000
concrete5 Packages
Designer Content (4.0).
concrete5 Overrides
blocks/test/db.xml, blocks/test/view.php, blocks/test/icon.png, blocks/test/add.php, blocks/test/controller.php, blocks/test/edit.php, blocks/test, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, blocks/test/db.xml, blocks/test/view.php, blocks/test/icon.png, blocks/test/add.php, blocks/test/controller.php, blocks/test/edit.php, blocks/test, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI
concrete5 Cache Settings
Block Cache - On Overrides Cache - On Full Page Caching - Off Full Page Cache Lifetime - Every 6 hours (default setting).
Server Software
Apache
Server API
cgi-fcgi
PHP Version
5.3.29
PHP Extensions
bcmath, bz2, bz2_filter, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, http, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mailparse, mbstring, mcrypt, memcache, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SourceGuardian, SPL, SQLite, sqlite3, ssh2, standard, stats, sysvmsg, sysvsem, tidy, tokenizer, wddx, xattr, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.
PHP Settings
max_execution_time - 120 log_errors_max_len - 1024 max_file_uploads - 20 max_input_nesting_level - 64 max_input_time - 120 max_input_vars - 2000 memory_limit - 192M post_max_size - 100M safe_mode - Off safe_mode_exec_dir - no value safe_mode_gid - Off safe_mode_include_dir - no value sql.safe_mode - Off upload_max_filesize - 100M http.persistent.handles.limit - -1 ldap.max_links - Unlimited memcache.max_failover_attempts - 20 mysql.max_links - 60 mysql.max_persistent - Unlimited mysqli.max_links - 60 mysqli.max_persistent - Unlimited pcre.backtrack_limit - 1000000 pcre.recursion_limit - 100000 pgsql.max_links - 60 pgsql.max_persistent - Unlimited session.cache_limiter - no value session.gc_maxlifetime - 1440 soap.wsdl_cache_limit - 5 safe_mode_allowed_envvars - PHP safe_mode_protected_env_vars - LD_LIBRARY_PATH