• Resolved shanebp

    (@shanebp)


    Using WP 3.7.3, BuddyPress 1.8.1

    When editing an Event, the Description field is incomplete re wp-editor.
    It looks very different and show raw html in the textarea.
    Any suggestions on how to get the Description field to look and behave the same in Edit as it does in Add?

    Here is the html output for the Description field when editing an event:

    <div class="event-editor">
    									<div id="wp-em-editor-content-wrap" class="wp-core-ui wp-editor-wrap tmce-active"><div id="wp-em-editor-content-editor-tools" class="wp-editor-tools hide-if-no-js"><a id="em-editor-content-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">Text</a>
    <a id="em-editor-content-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">Visual</a>
    <div id="wp-em-editor-content-media-buttons" class="wp-media-buttons"><a href="#" id="insert-media-button" class="button insert-media add_media" data-editor="em-editor-content" title="Add Media"><span class="wp-media-buttons-icon"></span> Add Media</a></div>
    </div>
    <div id="wp-em-editor-content-editor-container" class="wp-editor-container"><div id="qt_em-editor-content_toolbar" class="quicktags-toolbar"><input type="button" id="qt_em-editor-content_strong" accesskey="b" class="ed_button" title="" value="b"><input type="button" id="qt_em-editor-content_em" accesskey="i" class="ed_button" title="" value="i"><input type="button" id="qt_em-editor-content_link" accesskey="a" class="ed_button" title="" value="link"><input type="button" id="qt_em-editor-content_block" accesskey="q" class="ed_button" title="" value="b-quote"><input type="button" id="qt_em-editor-content_del" accesskey="d" class="ed_button" title="" value="del"><input type="button" id="qt_em-editor-content_ins" accesskey="s" class="ed_button" title="" value="ins"><input type="button" id="qt_em-editor-content_img" accesskey="m" class="ed_button" title="" value="img"><input type="button" id="qt_em-editor-content_ul" accesskey="u" class="ed_button" title="" value="ul"><input type="button" id="qt_em-editor-content_ol" accesskey="o" class="ed_button" title="" value="ol"><input type="button" id="qt_em-editor-content_li" accesskey="l" class="ed_button" title="" value="li"><input type="button" id="qt_em-editor-content_code" accesskey="c" class="ed_button" title="" value="code"><input type="button" id="qt_em-editor-content_more" accesskey="t" class="ed_button" title="" value="more"><input type="button" id="qt_em-editor-content_close" class="ed_button" title="Close all open tags" value="close tags"></div><textarea class="wp-editor-area" rows="20" cols="40" name="content" id="em-editor-content"><p>asdfasdf</p>
    <p>zxvczxv</p>
    </textarea></div>
    </div>
    	</div>

    Here is the html output for the Description field when creating an event:

    <div class="event-editor">
    									<div id="wp-em-editor-content-wrap" class="wp-core-ui wp-editor-wrap tmce-active"><link rel="stylesheet" id="editor-buttons-css" href="[...]/wp-includes/css/editor.min.css?ver=3.7.3" type="text/css" media="all">
    <div id="wp-em-editor-content-editor-tools" class="wp-editor-tools hide-if-no-js"><a id="em-editor-content-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">Text</a>
    <a id="em-editor-content-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">Visual</a>
    <div id="wp-em-editor-content-media-buttons" class="wp-media-buttons"><a href="#" id="insert-media-button" class="button insert-media add_media" data-editor="em-editor-content" title="Add Media"><span class="wp-media-buttons-icon"></span> Add Media</a></div>
    </div>
    <div id="wp-em-editor-content-editor-container" class="wp-editor-container"><div id="qt_em-editor-content_toolbar" class="quicktags-toolbar"><input type="button" id="qt_em-editor-content_strong" accesskey="b" class="ed_button" title="" value="b"><input type="button" id="qt_em-editor-content_em" accesskey="i" class="ed_button" title="" value="i"><input type="button" id="qt_em-editor-content_link" accesskey="a" class="ed_button" title="" value="link"><input type="button" id="qt_em-editor-content_block" accesskey="q" class="ed_button" title="" value="b-quote"><input type="button" id="qt_em-editor-content_del" accesskey="d" class="ed_button" title="" value="del"><input type="button" id="qt_em-editor-content_ins" accesskey="s" class="ed_button" title="" value="ins"><input type="button" id="qt_em-editor-content_img" accesskey="m" class="ed_button" title="" value="img"><input type="button" id="qt_em-editor-content_ul" accesskey="u" class="ed_button" title="" value="ul"><input type="button" id="qt_em-editor-content_ol" accesskey="o" class="ed_button" title="" value="ol"><input type="button" id="qt_em-editor-content_li" accesskey="l" class="ed_button" title="" value="li"><input type="button" id="qt_em-editor-content_code" accesskey="c" class="ed_button" title="" value="code"><input type="button" id="qt_em-editor-content_more" accesskey="t" class="ed_button" title="" value="more"><input type="button" id="qt_em-editor-content_close" class="ed_button" title="Close all open tags" value="close tags"></div><textarea class="wp-editor-area" rows="20" cols="40" name="content" id="em-editor-content" aria-hidden="true" style="display: none;"></textarea><span role="application" aria-labelledby="em-editor-content_voice" id="em-editor-content_parent" class="mceEditor wp_themeSkin" style=""><span class="mceVoiceLabel" style="display:none;" id="em-editor-content_voice">Rich Text Area</span><table role="presentation" id="em-editor-content_tbl" class="mceLayout" cellspacing="0" cellpadding="0" style="width: 100%; height: 400px;"><tbody><tr role="presentation" class="mceFirst"><td class="mceToolbar mceLeft mceFirst mceLast" role="toolbar"><div id="em-editor-content_toolbargroup" role="group" aria-labelledby="em-editor-content_toolbargroup_voice" tabindex="-1"><span role="application"><span id="em-editor-content_toolbargroup_voice" class="mceVoiceLabel" style="display:none;">Toolbar</span><table id="em-editor-content_toolbar1" class="mceToolbar mceToolbarRow1 Enabled" cellpadding="0" cellspacing="0" align="" role="presentation" tabindex="-1" aria-disabled="false" aria-pressed="false"><tbody><tr><td class="mceToolbarStart mceToolbarStartButton mceFirst"><span><!-- IE --></span></td><td style="position: relative"><a role="button" id="em-editor-content_bold" href="javascript:;" class="mceButton mceButtonEnabled mce_bold" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_bold_voice" title="Bold (Ctrl + B)" tabindex="-1"><span class="mceIcon mce_bold"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_bold_voice">Bold (Ctrl + B)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_italic" href="javascript:;" class="mceButton mceButtonEnabled mce_italic" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_italic_voice" title="Italic (Ctrl + I)" tabindex="-1"><span class="mceIcon mce_italic"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_italic_voice">Italic (Ctrl + I)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_strikethrough" href="javascript:;" class="mceButton mceButtonEnabled mce_strikethrough" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_strikethrough_voice" title="Strikethrough (Alt + Shift + D)" tabindex="-1"><span class="mceIcon mce_strikethrough"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_strikethrough_voice">Strikethrough (Alt + Shift + D)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_bullist" href="javascript:;" class="mceButton mceButtonEnabled mce_bullist" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_bullist_voice" title="Unordered list (Alt + Shift + U)" tabindex="-1" aria-pressed="false"><span class="mceIcon mce_bullist"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_bullist_voice">Unordered list (Alt + Shift + U)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_numlist" href="javascript:;" class="mceButton mceButtonEnabled mce_numlist" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_numlist_voice" title="Ordered list (Alt + Shift + O)" tabindex="-1" aria-pressed="false"><span class="mceIcon mce_numlist"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_numlist_voice">Ordered list (Alt + Shift + O)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_blockquote" href="javascript:;" class="mceButton mceButtonEnabled mce_blockquote" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_blockquote_voice" title="Blockquote (Alt + Shift + Q)" tabindex="-1"><span class="mceIcon mce_blockquote"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_blockquote_voice">Blockquote (Alt + Shift + Q)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_justifyleft" href="javascript:;" class="mceButton mceButtonEnabled mce_justifyleft" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_justifyleft_voice" title="Align Left (Alt + Shift + L)" tabindex="-1"><span class="mceIcon mce_justifyleft"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_justifyleft_voice">Align Left (Alt + Shift + L)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_justifycenter" href="javascript:;" class="mceButton mceButtonEnabled mce_justifycenter" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_justifycenter_voice" title="Align Center (Alt + Shift + C)" tabindex="-1"><span class="mceIcon mce_justifycenter"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_justifycenter_voice">Align Center (Alt + Shift + C)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_justifyright" href="javascript:;" class="mceButton mceButtonEnabled mce_justifyright" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_justifyright_voice" title="Align Right (Alt + Shift + R)" tabindex="-1"><span class="mceIcon mce_justifyright"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_justifyright_voice">Align Right (Alt + Shift + R)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_link" href="javascript:;" class="mceButton mce_link mceButtonDisabled" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_link_voice" title="Insert/edit link (Alt + Shift + A)" tabindex="-1" aria-disabled="true"><span class="mceIcon mce_link"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_link_voice">Insert/edit link (Alt + Shift + A)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_unlink" href="javascript:;" class="mceButton mce_unlink mceButtonDisabled" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_unlink_voice" title="Unlink (Alt + Shift + S)" tabindex="-1" aria-disabled="true"><span class="mceIcon mce_unlink"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_unlink_voice">Unlink (Alt + Shift + S)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_wp_more" href="javascript:;" class="mceButton mceButtonEnabled mce_wp_more" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_wp_more_voice" title="Insert More Tag (Alt + Shift + T)" tabindex="-1"><span class="mceIcon mce_wp_more"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_wp_more_voice">Insert More Tag (Alt + Shift + T)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_fullscreen" href="javascript:;" class="mceButton mceButtonEnabled mce_fullscreen" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_fullscreen_voice" title="Toggle fullscreen mode (Alt + Shift + G)" tabindex="-1" aria-pressed="false"><span class="mceIcon mce_fullscreen"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_fullscreen_voice">Toggle fullscreen mode (Alt + Shift + G)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_wp_adv" href="javascript:;" class="mceButton mceButtonEnabled mce_wp_adv" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_wp_adv_voice" title="Show/Hide Kitchen Sink (Alt + Shift + Z)" tabindex="-1"><span class="mceIcon mce_wp_adv"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_wp_adv_voice">Show/Hide Kitchen Sink (Alt + Shift + Z)</span></a></td><td class="mceToolbarEnd mceToolbarEndButton mceLast"><span><!-- IE --></span></td></tr></tbody></table><table id="em-editor-content_toolbar2" class="mceToolbar mceToolbarRow2 Enabled" cellpadding="0" cellspacing="0" align="" role="presentation" tabindex="-1" aria-disabled="false" aria-pressed="false" style="display: none;"><tbody><tr><td class="mceToolbarStart mceToolbarStartListBox mceFirst"><span><!-- IE --></span></td><td style="position: relative"><span role="listbox" aria-haspopup="true" aria-labelledby="em-editor-content_formatselect_voiceDesc" aria-describedby="em-editor-content_formatselect_voiceDesc"><table role="presentation" tabindex="-1" id="em-editor-content_formatselect" cellpadding="0" cellspacing="0" class="mceListBox mceListBoxEnabled mce_formatselect" aria-valuenow="Paragraph"><tbody><tr><td class="mceFirst"><span id="em-editor-content_formatselect_voiceDesc" class="voiceLabel" style="display:none;">Format - Paragraph</span><a id="em-editor-content_formatselect_text" tabindex="-1" href="javascript:;" class="mceText" onclick="return false;" onmousedown="return false;">Paragraph</a></td><td class="mceLast"><a id="em-editor-content_formatselect_open" tabindex="-1" href="javascript:;" class="mceOpen" onclick="return false;" onmousedown="return false;"><span><span style="display:none;" class="mceIconOnly" aria-hidden="true">?</span></span></a></td></tr></tbody></table></span></td><td class="mceToolbarStart"><span><!-- IE --></span></td><td style="position: relative"><a role="button" id="em-editor-content_underline" href="javascript:;" class="mceButton mceButtonEnabled mce_underline" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_underline_voice" title="Underline" tabindex="-1"><span class="mceIcon mce_underline"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_underline_voice">Underline</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_justifyfull" href="javascript:;" class="mceButton mceButtonEnabled mce_justifyfull" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_justifyfull_voice" title="Align Full (Alt + Shift + J)" tabindex="-1"><span class="mceIcon mce_justifyfull"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_justifyfull_voice">Align Full (Alt + Shift + J)</span></a></td><td style="position: relative"><div id="em-editor-content_forecolor" role="button" tabindex="-1" aria-labelledby="em-editor-content_forecolor_voice" aria-haspopup="true"><table role="presentation" class="mceSplitButton mceSplitButtonEnabled mce_forecolor" cellpadding="0" cellspacing="0" title="Select text color"><tbody><tr><td class="mceFirst"><a role="button" id="em-editor-content_forecolor_action" tabindex="-1" href="javascript:;" class="mceAction mce_forecolor" onclick="return false;" onmousedown="return false;" title="Select text color"><span class="mceAction mce_forecolor"></span><span class="mceVoiceLabel mceIconOnly" id="em-editor-content_forecolor_voice" style="display:none;">Select text color</span><div id="em-editor-content_forecolor_preview" class="mceColorPreview" style="background-color: rgb(136, 136, 136);"></div></a></td><td class="mceLast"><a role="button" id="em-editor-content_forecolor_open" tabindex="-1" href="javascript:;" class="mceOpen mce_forecolor" onclick="return false;" onmousedown="return false;" title="Select text color"><span class="mceOpen mce_forecolor"><span style="display:none;" class="mceIconOnly" aria-hidden="true">?</span></span></a></td></tr></tbody></table></div></td><td style="position: relative"><a role="button" id="em-editor-content_pastetext" href="javascript:;" class="mceButton mceButtonEnabled mce_pastetext" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_pastetext_voice" title="Paste as Plain Text" tabindex="-1"><span class="mceIcon mce_pastetext"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_pastetext_voice">Paste as Plain Text</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_pasteword" href="javascript:;" class="mceButton mceButtonEnabled mce_pasteword" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_pasteword_voice" title="Paste from Word" tabindex="-1"><span class="mceIcon mce_pasteword"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_pasteword_voice">Paste from Word</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_removeformat" href="javascript:;" class="mceButton mceButtonEnabled mce_removeformat" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_removeformat_voice" title="Remove formatting" tabindex="-1"><span class="mceIcon mce_removeformat"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_removeformat_voice">Remove formatting</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_charmap" href="javascript:;" class="mceButton mceButtonEnabled mce_charmap" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_charmap_voice" title="Insert custom character" tabindex="-1"><span class="mceIcon mce_charmap"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_charmap_voice">Insert custom character</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_outdent" href="javascript:;" class="mceButton mce_outdent mceButtonDisabled" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_outdent_voice" title="Outdent" tabindex="-1" aria-disabled="true"><span class="mceIcon mce_outdent"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_outdent_voice">Outdent</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_indent" href="javascript:;" class="mceButton mceButtonEnabled mce_indent" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_indent_voice" title="Indent" tabindex="-1"><span class="mceIcon mce_indent"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_indent_voice">Indent</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_undo" href="javascript:;" class="mceButton mce_undo mceButtonDisabled" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_undo_voice" title="Undo (Ctrl + Z)" tabindex="-1" aria-disabled="true"><span class="mceIcon mce_undo"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_undo_voice">Undo (Ctrl + Z)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_redo" href="javascript:;" class="mceButton mce_redo mceButtonDisabled" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_redo_voice" title="Redo (Ctrl + Y)" tabindex="-1" aria-disabled="true"><span class="mceIcon mce_redo"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_redo_voice">Redo (Ctrl + Y)</span></a></td><td style="position: relative"><a role="button" id="em-editor-content_wp_help" href="javascript:;" class="mceButton mceButtonEnabled mce_wp_help" onmousedown="return false;" onclick="return false;" aria-labelledby="em-editor-content_wp_help_voice" title="Help (Alt + Shift + H)" tabindex="-1"><span class="mceIcon mce_wp_help"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="em-editor-content_wp_help_voice">Help (Alt + Shift + H)</span></a></td><td class="mceToolbarEnd mceToolbarEndButton mceLast"><span><!-- IE --></span></td></tr></tbody></table></span></div><a href="#" accesskey="z" title="Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X" onfocus="tinyMCE.getInstanceById('em-editor-content').focus();"><!-- IE --></a></td></tr><tr><td class="mceIframeContainer mceFirst mceLast"><iframe id="em-editor-content_ifr" src='javascript:""' frameborder="0" allowtransparency="true" title="Rich Text Area Press ALT F10 for toolbar. Press ALT 0 for help." style="width: 100%; height: 361px; display: block;"></iframe></td></tr><tr class="mceLast"><td class="mceStatusbar mceFirst mceLast"><div id="em-editor-content_path_row" role="group" aria-labelledby="em-editor-content_path_voice" tabindex="-1"><span id="em-editor-content_path_voice">Path</span><span>: </span><span id="em-editor-content_path"><a href="javascript:;" role="button" onmousedown="return false;" class="mcePath_0" id="_mce_item_11" tabindex="-1">p</a></span></div><a id="em-editor-content_resize" href="javascript:;" onclick="return false;" class="mceResize" tabindex="-1"></a></td></tr></tbody></table></span></div>
    </div>
    
     	</div>

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Why are you using an old copy of WordPress? Were you aware that your site is currently running a very real risk of being hacked? You need to upgrade WordPress asap.

    Thread Starter shanebp

    (@shanebp)

    Clients aren’t always rationale, iow. not my decision. But thanks for the suggestion.

    I’m not sure I follow the issue. Is it that you’re seeing HTML code within the Event Description area when you edit an event?

    Which version of Events Manager do you have?

    Thread Starter shanebp

    (@shanebp)

    >Is it that you’re seeing HTML code within the Event Description area when you edit an event?

    Yes, exactly.
    And the editor doesn’t load or initialize completely, as seen here:
    screen.

    Version 5.5.2

    Thread Starter shanebp

    (@shanebp)

    The issue seems to be that the Edit link goes to a non-BuddyPress page:

    .../events/add-an-event/?action=edit&event_id=32

    Changing it to this loads wp-editor ‘properly’

    .../members/bob/events/my-events/?action=edit&event_id=32

    iow. more hacking

    Is this in WP admin or on the front-end of the site?

    If it’s the front-end, does this happen when you switch to the default theme and deactivate all other plugins?

    Thread Starter shanebp

    (@shanebp)

    On the front end.

    I solved it by rebuilding the url via:

    apply_filters('em_event_get_edit_url', $link, $this);

    Great. Thanks for the update, might help someone else.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Event Description – difference between Add and Edit’ is closed to new replies.