@@ -360,27 +360,6 @@ function RemoteFunctions(config = {}) {
360360 } ) ;
361361 }
362362
363- /**
364- * this is for paste button, this inserts the saved content from clipboard just above this element
365- * @param {Event } event
366- * @param {DOMElement } targetElement
367- */
368- function _handlePasteOptionClick ( event , targetElement ) {
369- if ( LivePreviewView . isElementEditable ( targetElement ) ) {
370- const targetTagId = targetElement . getAttribute ( GLOBALS . DATA_BRACKETS_ID_ATTR ) ;
371-
372- window . _Brackets_MessageBroker . send ( {
373- livePreviewEditEnabled : true ,
374- element : targetElement ,
375- event : event ,
376- tagId : Number ( targetTagId ) ,
377- paste : true
378- } ) ;
379- } else {
380- console . error ( "The TagID might be unavailable or the element tag is directly body or html" ) ;
381- }
382- }
383-
384363 /**
385364 * This function will get triggered when from the multiple advance DOM buttons, one is clicked
386365 * this function just checks which exact button was clicked and call the required function
@@ -391,8 +370,6 @@ function RemoteFunctions(config = {}) {
391370 function handleOptionClick ( e , action , element ) {
392371 if ( action === "edit-text" ) {
393372 startEditing ( element ) ;
394- } else if ( action === "paste" ) {
395- _handlePasteOptionClick ( e , element ) ;
396373 } else if ( action === "ai" ) {
397374 _handleAIOptionClick ( e , element ) ;
398375 } else if ( action === "image-gallery" ) {
@@ -1008,10 +985,6 @@ function RemoteFunctions(config = {}) {
1008985
1009986 let content = `
1010987 <div class="more-options-dropdown">
1011- <div class="dropdown-item" data-action="paste">
1012- <span class="item-icon">${ icons . paste } </span>
1013- <span class="item-label">${ strings . paste } </span>
1014- </div>
1015988 ${ handlerItems }
1016989 </div>
1017990 ` ;
0 commit comments