Beskrivelse
Skriv om dette er et lite verktøy som lar deg gripe snutter fra nettet og enkelt skrive et nytt innlegg om dette.
Den vil tilmed la deg velge fra bilder eller videoer som er inkludert på siden og bruke dem i ditt innlegg.
Bruk Skriv om dette som en rask og lett måte å fremheve eller kommentere en annen side på nettet, på ditt eget nettsted.
Version 2.0 – Gutenberg Block Editor
Press This 2.0 brings the modern WordPress block editor experience to the bookmarklet popup. You can now compose posts using familiar blocks like Paragraph, Heading, Image, Quote, List, and Embed.
New Features:
- Gutenberg Block Editor – Full block editor integration for a consistent WordPress editing experience
- Smart Post Format Suggestions – Automatically suggests Video, Quote, or Link formats based on content
- Enhanced Content Extraction – Improved scraping with JSON-LD structured data support
- Client-Side Only Scraping – All content extraction happens in your browser for better privacy and security
- Featured Image Support – Set any scraped image as your post’s featured image
- Improved Media Grid – Better thumbnail display with support for video and audio embeds
Filters for Developers
Press This 2.0 includes new filters for customization:
press_this_allowed_blocks– Customize which blocks are available in the editorpress_this_post_format_suggestion– Modify the auto-suggested post format
See the Developer Documentation section below for details.
Bidragsytere
Rapporter om programfeil og endringsforespørsler kan sendes in via https://github.com/WordPress/press-this .
Developer Documentation
New Hooks and Filters in 2.0
press_this_allowed_blocks
Customize which blocks are available in the Press This editor.
add_filter( 'press_this_allowed_blocks', function( $blocks ) {
// Add the gallery block
$blocks[] = 'core/gallery';
// Remove the embed block
$blocks = array_filter( $blocks, function( $block ) {
return $block !== 'core/embed';
} );
return $blocks;
} );
Default blocks: core/paragraph, core/heading, core/image, core/quote, core/list, core/list-item, core/embed
press_this_post_format_suggestion
Modify or override the auto-suggested post format based on content.
add_filter( 'press_this_post_format_suggestion', function( $suggested_format, $data ) {
// If the URL contains 'podcast', suggest audio format
if ( ! empty( $data['u'] ) && strpos( $data['u'], 'podcast' ) !== false ) {
return 'audio';
}
return $suggested_format;
}, 10, 2 );
The $data array contains scraped content including:
– u – Source URL
– s – Selected text
– t – Page title
– _images – Array of image URLs
– _embeds – Array of embed URLs
– _meta – Meta tag data
– _jsonld – JSON-LD structured data
Preserved Hooks from 1.x
All existing hooks continue to work:
press_this_redirect_in_parent– Control post-save redirect behaviorpress_this_save_post– Filter post data before savingpress_this_save_redirect– Filter redirect URL after saveenable_press_this_media_discovery– Toggle media scrapingpress_this_data– Filter the complete scraped data arraypress_this_suggested_html– Filter default content templatesshortcut_link– Customize the bookmarklet URL
Historie
WordPress, fra den eldste tider, inkluderte en måte å bringe snutter fra andre nettsteder til deg for å la bi publisert på ditt eget nettsted.
Den originale «Skriv om dette» ble fjernet fra WordPress 2.5 og en ny «Skriv om dette» ble klagt til i 2.6. Den eksisterte så i hovedsak uendret frem til WordPress 4.2, som fullstedig oppfrisket «Skriv om dette».
I WordPress 4.9 ble «Skriv om dette» overført til en «kanonisk utvidelse» — en offisiell utvidelse fra WordPress.org slik at nettsteder som ønsket å bruke den kunne det, og slik få effektuert nisjepreget funksjonaitet ut av kjernen. Det samme hadde tidligere skjedd med import-funksjonene.
In version 2.0, Press This was modernized to use the Gutenberg block editor, bringing it in line with the modern WordPress editing experience while maintaining backward compatibility with existing installations.
Installasjon
- Install the plugin via your wp-admin dashboard via Plugins->Add New as normal.
- Visit the Tools page of wp-admin for additional installation steps.
Ofte stilte spørsmål
-
Is Press This compatible with my existing bookmarklet?
-
Yes! Existing bookmarklets from version 1.x will continue to work. However, we recommend updating your bookmarklet to get the enhanced features of version 2.0. An upgrade prompt will appear when using an older bookmarklet.
-
Which blocks are available in Press This?
-
By default, Press This includes: Paragraph, Heading, Image, Quote, List, and Embed blocks. Developers can customize this using the
press_this_allowed_blocksfilter. -
Can I still use the full WordPress editor?
-
Absolutely! Click the «Standard Editor» option in the publish dropdown to save your draft and continue editing in the full WordPress block editor.
Vurderinger
Bidragsytere og utviklere
«Skriv om dette» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:
Bidragsytere“Skriv om dette” har blitt oversatt til 24 språk. Takk til oversetterne for deres bidrag.
Oversett “Skriv om dette” til ditt språk.
Interessert i utvikling?
Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.
Endringslogg
2.0.2
- New: Undo/redo support in the block editor (Ctrl+Z / Ctrl+Shift+Z)
- New: Block transform keyboard shortcuts (e.g. heading, list, quote)
- New: Rich text format keyboard shortcuts via format-library (bold, italic, link, etc.)
- New: Bookmarklet now preserves HTML formatting in text selections
- Fix: Critical error when saving posts with external images in REST context
- Fix: Scraped media inserting at bottom of post instead of cursor position
- Fix: Quote block unwrap losing nested inner blocks
- Fix: Category panel styles not loading and stale search filter results
- Fix: Stale state in category toggle handler
- Change: Removed auto-suggestion of link post format
- Change: Restored category search filter using Gutenberg components
2.0.1
- New: Gutenberg block editor replaces TinyMCE for modern editing experience
- New: Smart post format auto-suggestion based on content type
- New:
press_this_allowed_blocksfilter for customizing available blocks - New:
press_this_post_format_suggestionfilter for customizing format suggestions - New: JSON-LD structured data extraction for better content discovery
- New: Open Graph video metadata extraction for improved embed detection
- New: Featured image selection from scraped images
- New: Alternate canonical URL detection via hreflang
- Improved: Client-side only content extraction (removed server-side scraping)
- Improved: Media grid with video/audio type indicators
- Improved: Bookmarklet version detection with upgrade prompts
- Improved: Title extraction now checks JSON-LD headline
- Improved: Description extraction now checks JSON-LD description
- Compatibility: All 1.x hooks and filters preserved
- Compatibility: Legacy bookmarklet URL format continues to work
- Requires: WordPress 6.9 or higher
- Requires: PHP 7.4 or higher
1.1.2
- Fixes the styling of the .press-this .modal-close class (props https://github.com/crishnakh)
- Bumps the Tested up to version to 6.7.1
1.1.1
- Korrigerer en feil med pakkingen av utvidelsen for SVN.
1.1.0
- Bringer tilbake bokmerke-appleten som tidlgere fantes i WordPress 4.8 og eldre.
1.0
- Opprinnelig utgivelse av utvidelsen. Tidligere en del av selve WordPress.




