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
94c4cc22
Commit
94c4cc22
authored
Feb 12, 2007
by
Nigel McNie
Committed by
Nigel McNie
Feb 12, 2007
Browse files
Format body text that has come from a WYSIWYG editor. Since this script
doesn't use pieforms, this has to be done manually...
parent
00fedb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/saveblogpost.json.php
View file @
94c4cc22
...
...
@@ -40,6 +40,12 @@ $blogpost = param_integer('blogpost');
$uploads
=
json_decode
(
param_variable
(
'uploads'
));
$artefacts
=
json_decode
(
param_variable
(
'artefacts'
));
$body
=
param_variable
(
'body'
);
if
(
!
get_account_preference
(
$USER
->
get
(
'id'
),
'wysiwyg'
))
{
$body
=
format_whitespace
(
$body
);
}
else
{
$body
=
clean_text
(
$body
);
}
$tags
=
param_variable
(
'tags'
);
$userid
=
$USER
->
get
(
'id'
);
...
...
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