File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 15591559 results . forEach ( ( item ) => {
15601560 const text = item . title || item . pagetitle || item . alias || String ( item . id ) ;
15611561 const value = String ( item . id ) ;
1562- let iconName = 'link' ;
1563- if ( item && typeof item . icon === 'string' && item . icon . trim ( ) ) {
1564- const rawIcon = item . icon . trim ( ) ;
1565- if ( rawIcon . indexOf ( '<svg' ) !== - 1 && tinymce ?. IconManager ?. add ) {
1566- if ( ! evoState . iconRegistered && evoState . iconName !== 'link' ) {
1567- tinymce . IconManager . add ( evoState . iconName , rawIcon ) ;
1568- evoState . iconRegistered = true ;
1569- }
1570- if ( evoState . iconRegistered ) {
1571- iconName = evoState . iconName ;
1572- }
1573- } else {
1574- iconName = rawIcon ;
1575- }
1576- }
1577- items . push ( { text, value, icon : iconName } ) ;
1562+ items . push ( { text, value, icon : 'link' } ) ;
15781563 map [ value ] = item ;
15791564 } ) ;
15801565 evoState . searchItems = items ;
You can’t perform that action at this time.
0 commit comments