Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
cdb749b0
Commit
cdb749b0
authored
Oct 03, 2011
by
Francois Marier
Committed by
Gerrit Code Review
Oct 03, 2011
Browse files
Merge "Add another new google doc url formats (bug #856130)"
parents
ad70e737
908a2341
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/googleapps/lib.php
View file @
cdb749b0
...
...
@@ -156,6 +156,14 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
// docs.google.com - Google document (after Sept 2011) incl. custom domain document
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the document
array
(
'match'
=>
'#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)document/d/([a-zA-Z0-9\_\-]+).*#'
,
'url'
=>
$httpstr
.
'://docs.google.com/$1document/pub?id=$2'
,
'type'
=>
'iframe'
,
),
// docs.google.com - Google spreadsheet document (after Sept 2011) incl. custom domain document
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the document
array
(
'match'
=>
'#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)spreadsheet/.*key=([a-zA-Z0-9\_\-]+).*#'
,
'url'
=>
$httpstr
.
'://docs.google.com/$1spreadsheet/pub?key=$2'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment