mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
pasting content in the title editor
This commit is contained in:
parent
88a39415ac
commit
5759085062
23
h-m-m
23
h-m-m
|
@ -1215,6 +1215,29 @@ function edit_node(&$mm, $rewrite = false)
|
|||
return;
|
||||
}
|
||||
|
||||
// pasting
|
||||
elseif ($in=="\026")
|
||||
{
|
||||
$content =
|
||||
trim
|
||||
(
|
||||
str_replace
|
||||
(
|
||||
"\n",
|
||||
" ",
|
||||
str_replace
|
||||
(
|
||||
"\t",
|
||||
" ",
|
||||
get_from_clipboard($mm)
|
||||
)
|
||||
)
|
||||
);
|
||||
$title = substr_replace($title, $content, $cursor-1, 0);
|
||||
$cursor += mb_strlen($content);
|
||||
}
|
||||
|
||||
|
||||
// normal characters
|
||||
elseif (strlen($in)==1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue