From 2c305e60440299f15f5a1af670b1a8a3fa95b0a4 Mon Sep 17 00:00:00 2001 From: James Martindale <11380394+jkmartindale@users.noreply.github.com> Date: Tue, 5 Apr 2022 17:05:19 -0500 Subject: [PATCH] Improve Froala detection - Version detection - dom rule instead of html rule - Recognize Froala 1.x --- src/technologies/f.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/technologies/f.json b/src/technologies/f.json index 706ac15af..7c56c18ad 100644 --- a/src/technologies/f.json +++ b/src/technologies/f.json @@ -1380,12 +1380,15 @@ 24 ], "description": "Froala Editor is a WYSIWYG HTML Editor written in Javascript that enables rich text editing capabilities for applications.", - "html": "<[^>]+class=\"[^\"]*(?:fr-view|fr-box)", + "dom": ".fr-view, .fr-box, .fr-popup, .froala-box", "icon": "Froala.svg", "implies": [ "jQuery", "Font Awesome" ], + "js": { + "FroalaEditor.VERSION": "([\\d\\.]+)\\;version:\\1" + }, "website": "http://froala.com/wysiwyg-editor" }, "FrontPage": { @@ -1547,4 +1550,4 @@ "scriptSrc": "/fullPage\\.js(?:/([\\d\\.]+)/)?\\;version:\\1", "website": "https://github.com/alvarotrigo/fullpage.js" } -} \ No newline at end of file +}