X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ffckeditor%2Feditor%2Fplugins%2Fplaceholder%2Ffckplugin.js;h=ec4e1a51091b749fab84083ba0484a90411466dc;hp=26489b872813a050c7fc887ff2940a2d9d42be2a;hb=18067f0bd41356e905666128c5e8105d1fca7c60;hpb=d0b2224eefe4df27ba4f5158a58fb86f9221301c diff --git a/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js b/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js index 26489b872..ec4e1a510 100644 --- a/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js +++ b/httemplate/elements/fckeditor/editor/plugins/placeholder/fckplugin.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * @@ -22,7 +22,7 @@ */ // Register the related command. -FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 170 ) ) ; +FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 160 ) ) ; // Create the "Plaholder" toolbar button. var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ; @@ -37,7 +37,7 @@ var FCKPlaceholders = new Object() ; // Add a new placeholder at the actual selection. FCKPlaceholders.Add = function( name ) { - var oSpan = FCK.CreateElement( 'SPAN' ) ; + var oSpan = FCK.InsertElement( 'span' ) ; this.SetupSpan( oSpan, name ) ; } @@ -184,4 +184,4 @@ FCKXHtml.TagProcessors['span'] = function( node, htmlNode ) FCKXHtml._AppendChildNodes( node, htmlNode, false ) ; return node ; -} \ No newline at end of file +}