Skip to main content
Topic: [SOLVED]Can't write out a quote (Read 2339 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED]Can't write out a quote

Hi,
When i make a quote i can't write out of this quote !
I must go to the source and write after [/quote] to make it works.
It is just for me or a general bug ?
Have a nice day,
Philippe
Last Edit: April 19, 2018, 01:39:20 pm by augras

Re: Can't write out a quote

Reply #1

Quote from: augras – It is just for me or a general bug ?
It's not just you, but you can use "View source" into the editor (it's the last icon, that with an eye and a pen)
sorry for my bad english

Re: Can't write out a quote

Reply #2

In the source for the editor tags add a space after the closed quote tag.
That worked perfectly ...
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: Can't write out a quote

Reply #3

hmm...
Adding a new line after the blockquote in themes/default/scripts/jquery.sceditor.elkarte.js changing this line:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote>';
to:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote><br>';
will fix the issue, but will also add an empty line any time the editor is switched between source and wysiwyg (that means at least once before the text is sent for posting).
In most of the cases if the user doesn't start playing with the toggle should be fine, at least until we find a proper fix I guess.

For the record: I added this change here on elk.net.
Bugs creator.
Features destroyer.
Template killer.

Re: Can't write out a quote

Reply #4

Thank you every body !
Philippe

Re: [SOLVED]Can't write out a quote

Reply #5

Quote from: Feline – In the source for the editor tags add a space after the closed quote tag.
That worked perfectly ...
I think this is the right approach as well.

Re: Can't write out a quote

Reply #6

Quote from: emanuele – hmm...
Adding a new line after the blockquote in themes/default/scripts/jquery.sceditor.elkarte.js changing this line:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote>';
to:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote><br>';



This will add a newline any time you toggle the Source mode...
As I said .. add a space after the closing BBC tag like
Code: [Select]
"[/quote] " 
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: [SOLVED]Can't write out a quote

Reply #7

Quote from: emanuele – hmm...
Adding a new line after the blockquote in themes/default/scripts/jquery.sceditor.elkarte.js changing this line:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote>';
to:
Code: [Select]
content = '<blockquote author="' + attr_author + '" link="' + attr_link + '" date="' + attr_date + '"><cite>' + sAuthor + ' ' + sDate + '</cite>' + content + '</blockquote><br>';
will fix the issue, but will also add an empty line any time the editor is switched between source and wysiwyg (that means at least once before the text is sent for posting).
In most of the cases if the user doesn't start playing with the toggle should be fine, at least until we find a proper fix I guess.

For the record: I added this change here on elk.net.

Hi,
if i put together your responses i just change
Code: [Select]
'</blockquote><br>'
by
Code: [Select]
'</blockquote>&nbsp;'
It works fine like this.
Thanks emanuele for the file and the line, and thanks Feline for the solution.
We are stronger together !
Philippe

EDIT1
Here the editor is by défault with code viewing and not wysiwyg.
And each time i edit my post there is a new line between the quote and my response : a new line when i open and a new one also when i submit... seems the
Code: [Select]
<br>
at the and of the line works.

Last Edit: April 20, 2018, 05:09:05 am by augras

Re: [SOLVED]Can't write out a quote

Reply #8

Would you guys mind terribly making this a git commit? Indeed it may be a bandaid for the moment, but at least it's better than leaving the issue unaddressed. Sure, it can be done manually. Then comes update time, and the next, and the next. If or when a proper fix comes along ripping off the bandaid can be part of that commit.  ;)