Author: weaverryan
Date: 2010-01-17 23:45:15 +0100 (Sun, 17 Jan 2010)
New Revision: 26786
Modified:
plugins/sfSympalPlugin/trunk/config/app.yml
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
Log:
Changing method with which tinymce content slots are saved. Instead od
triggering on tinymce's
change event (which won't fire on minor changes and is inefficient), we trigger
the save across
all tinymce editors when the save or preview links are clicked. This seems like
a fairly blunt
approach, but seems to work.
This was tested in ff 3.5, IE8 and Safari.
Modified: plugins/sfSympalPlugin/trunk/config/app.yml
===================================================================
--- plugins/sfSympalPlugin/trunk/config/app.yml 2010-01-17 22:27:33 UTC (rev
26785)
+++ plugins/sfSympalPlugin/trunk/config/app.yml 2010-01-17 22:45:15 UTC (rev
26786)
@@ -181,7 +181,7 @@
form: sfSympalInlineEditContentSlotForm
form_renderer: sympal_edit_slot/slot_editor_renderer
widget_options:
- config: 'onchange_callback: "sympalTinyMCETriggerSave",
handle_event_callback : "sympalHandleTinyMCEEvent"'
+ config: 'handle_event_callback : "sympalHandleTinyMCEEvent"'
# Enable and disable the check for upgrades via the web when on the Sympal
dashboard
check_for_upgrades_on_dashboard: false
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
2010-01-17 22:27:33 UTC (rev 26785)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/web/js/editor.js
2010-01-17 22:45:15 UTC (rev 26786)
@@ -75,6 +75,8 @@
// Save all the slots on the page
$('.sympal_save_content_slots').click(function() {
+ sympalTinyMCETriggerSave();
+
// Save each content slot form
$('.sympal_content_slot form').each(function() {
var form = $(this);
@@ -96,6 +98,8 @@
// Render a preview of all the slots
$('.sympal_preview_content_slots').click(function() {
+ sympalTinyMCETriggerSave();
+
// Submit each slot form to render a preview
$('.sympal_content_slot form').each(function() {
var form = $(this);
@@ -242,4 +246,4 @@
sympalSetupDropdownMenu('#sympal_editor', '.toggle_editor_menu');
sympalSetupDropdownMenu('#sympal_assets', '.toggle_sympal_assets');
sympalSetupDropdownMenu('#sympal_links', '.toggle_sympal_links');
-}
\ No newline at end of file
+}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.