[Xerte] Re: quick question re bullets page with new editor

Ron Mitchell ronm at mitchellmedia.co.uk
Thu Mar 12 17:04:19 GMT 2015


Hi John
hadn't spotted that and I'd replied to my previous message but it doesn't
seem to have reached the list...

Ok scrub that.
Just viewed the source and removed the <p></p> and </br> tags presumably
added by the editor and then it works like it does in 2.1.

So basically adding the text in source mode and saving in source mode works
as it does in 2.1 but switching back to the wysisyg mode and saving breaks
it again by adding <p><p/> tags and stripping the line breaks.

I've added a few related points in the Trello board about this...

Is there any way I/we can control editor options and/or what the editor
strips away? A few examples:

I added an image and as there wasn't any options in the image menu to
configure hspace or vspace I added those tags via the source view which
worked at first but get stripped away upon switching back to editor view and
saving.

Similarly I couldn't change image width to be a percentage via the image
menu but again could via source. This also worked until getting stripped off
by the editor.

You'll see my post to the dev list about the bullets page. I can get that
working as I want it (building the lines) via source view but if I switch
back to wysiwyg view it adds <p> tags and strips away the line breaks. I'm
hoping that as long as I don't make changes to that page it will continue to
work without stripping the line breaks. 

Cheers
Ron

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 12 March 2015 16:48
To: Xerte discussion list
Subject: [Xerte] Re: quick question re bullets page with new editor

Hi Ron,

In actual fact Sarah Berthelemy has already logged this issue
https://github.com/thexerteproject/xerteonlinetoolkits/issues/211

Regards,

John Smith | Learning Technologist
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow
Caledonian University Cowcaddens Road | Glasgow | G4 0BA

Please address ALL support requests to hlsblt at gcu.ac.uk where one of the
School Learning Technologists will pick up the job. This will ensure that
all jobs are completed as promptly as possible.
________________________________________
From: Smith, John
Sent: 12 March 2015 16:16
To: Xerte discussion list
Subject: RE: [Xerte] quick question re bullets page with new editor

Hi Ron,

The new editor should simply be building the data xml file and structuring
it in the same way as the flash one did. If that is the case then it is the
page model rendering the page that is at fault...

What I suspect is most likely is that extra line breaks are being converted
to <p> tags or similar html stuff is being inserted by the new WYSIWIG areas
and the model itself can't cope. It's also similar to the way when you paste
html for a table into the old flash editor like

<table>
<tr><td>...
<tr><td>... etc

You get all the extra carriage returns as whitespace at the end... you need
to put it in as

<table><tr><td>...</td><td>...</td><td>...</td><td>...</td> etc...

These problems with the models are probably going to be more common in the
interim since the models are having to parse a lot more data (html tags,
formatting etc) that they haven't been seeing in the past as the flash
editor didn't insert them...

If you find any good ones though then it would be great if you could log
them as issues.

Regards,

John Smith | Learning Technologist
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow
Caledonian University Cowcaddens Road | Glasgow | G4 0BA

Please address ALL support requests to hlsblt at gcu.ac.uk where one of the
School Learning Technologists will pick up the job. This will ensure that
all jobs are completed as promptly as possible.
________________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
[ronm at mitchellmedia.co.uk]
Sent: 12 March 2015 16:03
To: 'Xerte discussion list'
Subject: [Xerte] quick question re bullets page with new editor

Hi all
a quick question re the bullets page with new editor - should that still
work in terms of the build-effect e.g. show line 1 then line 3 then line 5
and so on and if so what's the trick?

I can see the timing adjustment having an effect but all the text is showing
instantly and then it's building blank lines so it's almost back to front
but perhaps I'm doing something wrong?

Cheers
Ron




This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it.

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the author
of this email do not necessarily reflect the views of the University of
Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system,
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

Glasgow Caledonian University is a registered Scottish charity, number
SC021474

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte




This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the author
of this email do not necessarily reflect the views of the University of
Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system,
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Xerte mailing list