updateweb
This commit is contained in:
49
scripts/test-quill-fix.sh
Executable file
49
scripts/test-quill-fix.sh
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "🔍 Testing Quill.js Integration Fix..."
|
||||
echo
|
||||
|
||||
# Check for Quill CSS
|
||||
if grep -q "quill.snow.css" ../website/admin/homepage.html; then
|
||||
echo "✅ Quill.js CSS found"
|
||||
else
|
||||
echo "❌ Quill.js CSS missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for Quill JS
|
||||
if grep -q "quill.js" ../website/admin/homepage.html; then
|
||||
echo "✅ Quill.js JavaScript found"
|
||||
else
|
||||
echo "❌ Quill.js JavaScript missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for Quill styling
|
||||
if grep -q "ql-container" ../website/admin/homepage.html; then
|
||||
echo "✅ Custom Quill styling found"
|
||||
else
|
||||
echo "❌ Custom Quill styling missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for error handling
|
||||
if grep -q "typeof Quill" ../website/admin/js/homepage.js; then
|
||||
echo "✅ Error handling added"
|
||||
else
|
||||
echo "❌ Error handling missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for all three editors
|
||||
count=$(grep -c "new Quill" ../website/admin/js/homepage.js)
|
||||
if [ "$count" -eq 3 ]; then
|
||||
echo "✅ All 3 Quill editors initialized"
|
||||
else
|
||||
echo "⚠️ Expected 3 editors, found $count"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "✅ All checks passed! Quill.js is properly configured."
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
Reference in New Issue
Block a user