#8 Custom feature: DbleClick Image/Table to Edit

Version 1.x
closed-works-for-me
Editor (144)
5
2004-05-09
2004-04-13
No

Here is a change I thought was important. If you want
to edit an image or a table by double clicking on it (like
Microsoft way ;P) add those two things:

########################
add anywhere in "fckeditor.html"
########################
<script language="javascript"
event="onDblClick" for="objContent">
<!--
dblClickAction() ;
//-->
</script>

########################
add anywhere in "js/fck_editor.js"
########################
function dblClickAction()
{
// If over a link
if (checkDecCommand(DECMD_UNLINK) ==
OLE_TRISTATE_UNCHECKED)
{
dialogLink() ;
}

// Verifies if the selection is a TABLE or IMG
var sel =
objContent.DOM.selection.createRange() ;
var sTag ;
if (objContent.DOM.selection.type != 'Text' &&
sel.length == 1)
sTag = sel.item(0).tagName ;

if (sTag == "TABLE")
{
dialogTable() ;
}
else if (sTag == "IMG")
{
dialogImage() ;
}
}

Discussion

  • Chris B

    Chris B - 2004-04-14

    Logged In: YES
    user_id=1019494

    I don't understand the statement "Make "View Source" as
    image not checkbox". This patch seems to be for double-
    clicking to edit images and tables, not changing the "View
    Source" toolbar item. Am I missing something obvious?

    Thanks, Chris B.

     
  • Abdul-Aziz Al-Oraij (pk Top Man)

    • summary: Make "View Source" as image not checkbox --> Custom feature: DbleClick Image/Table to Edit
    • status: open --> open-works-for-me
     
  • Nobody/Anonymous

    Logged In: NO

    Thanx for the note "Chris B"
    I've fixed it ;)

     
  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
    • status: open-works-for-me --> closed-works-for-me
     
  • Frederico Caldeira Knabben

    Logged In: YES
    user_id=572424

    Version 1.6 brings this feature.

    Best regards,
    FredCK

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks