mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
editor: Don't restrict plugins from being able to bring in newline content
#2412 broke this, it was discovered in https://github.com/JohnMcLear/ep_copy_paste_images/issues/20. The limitation means that images can't be pasted within lists which IMHO is fine. I could refine this down to OL only but I think images within lists would be fine not to include.
This commit is contained in:
parent
c6b5846172
commit
2011c24f57
1 changed files with 6 additions and 2 deletions
|
@ -665,8 +665,12 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
||||||
{
|
{
|
||||||
if (lines.length() - 1 == startLine)
|
if (lines.length() - 1 == startLine)
|
||||||
{
|
{
|
||||||
// commented out to solve #2412 - https://github.com/ether/etherpad-lite/issues/2412
|
// to solve #2412 - https://github.com/ether/etherpad-lite/issues/2412
|
||||||
// cc.startNewLine(state);
|
// added additional check to resolve https://github.com/JohnMcLear/ep_copy_paste_images/issues/20
|
||||||
|
// this does mean that images etc can't be pasted on lists but imho that's fine
|
||||||
|
if(state.lineAttributes && !state.lineAttributes.list){
|
||||||
|
cc.startNewLine(state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue