From 7f8f873f877dabd4ae489182e678d72166e8dd57 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 3 Jan 2008 13:43:51 +0000 Subject: [PATCH] http://board.s9y.org/viewtopic.php?t=11985&highlight= --- deployment/serendipity_editor.js | 7 ++++--- docs/NEWS | 4 ++++ serendipity_editor.js | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/deployment/serendipity_editor.js b/deployment/serendipity_editor.js index b034053b..e9d01dbf 100644 --- a/deployment/serendipity_editor.js +++ b/deployment/serendipity_editor.js @@ -260,6 +260,7 @@ function noWysiwygAdd( str, textarea ) eltarget = document.forms[0].elements[0]; } + wrapSelection(eltarget, str, ''); eltarget.focus(); } @@ -324,12 +325,12 @@ function serendipity_imageSelector_done(textarea) floating = 'center'; if (f['serendipity[align]'][0].checked == true) { - img = "\"\""; + img = "\"\""; } else if (f['serendipity[align]'][1].checked == true) { - img = "\"\""; + img = "\"\""; floating = 'left'; } else if (f['serendipity[align]'][2].checked == true) { - img = "\"\""; + img = "\"\""; floating = 'right'; } diff --git a/docs/NEWS b/docs/NEWS index 1a6f509b..ef47f902 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.3 () ------------------------------------------------------------------------ + * Insert "serendipity_image_center", "serendipity_image_left" and + "serendipity_image_right" CSS classes to the image tag, when + inserting an image from the mediadatabase (garvinhicking) + * Fix displaying entry title in the backend section exactly like in the frontend, thanks to Alex (garvinhicking) diff --git a/serendipity_editor.js b/serendipity_editor.js index 6a9b6d0b..e9d01dbf 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -325,12 +325,12 @@ function serendipity_imageSelector_done(textarea) floating = 'center'; if (f['serendipity[align]'][0].checked == true) { - img = "\"\""; + img = "\"\""; } else if (f['serendipity[align]'][1].checked == true) { - img = "\"\""; + img = "\"\""; floating = 'left'; } else if (f['serendipity[align]'][2].checked == true) { - img = "\"\""; + img = "\"\""; floating = 'right'; }