HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Wysiwyg editor

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#34485 (In Topic #7770)
Avatar

Community saint

Hello everyone

Wysiwyg editor is adding lines everywhere and puts some text in superscript.
Looks ok when editing, preview or edit, and it doubles all the linebreaks.
Preview again, does it again, and so on.
Anyone had this before ?
 

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34486
Avatar

Hi,

What version are you running? There have been quite a few changes since v3.0.0 was released.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34487
Avatar

Community saint

3.2.2

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34488
Avatar

Community saint

I too, just upgraded to 3.2.2. I am not having any problems, but some of my members are complaining about the editor doing strange things.
Back to the top
 
Posted
Rating:
#34494
Avatar

Hi,

To fix and problems we'll need precise step-by-step instructions for examples of when the WYSIWYG editor fails (the sequence of actions, including keypresses, previews, and the final submit). If the problem happens when data is pasted into the editor, we'd need to know/have the source of the data (including the file/URL and the name and version of the app being copied from [e.g. MS Word XP]) and what portion was pasted.
We'll also need to know the web browser being used (e.g. "Internet Explorer 7").

I'm sorry for the lack of immediate action here, but we've run a lot of tests on the editor which pass, yet it's a complex tool and it's behaviour is dependant on a lot of external factors.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34497
Avatar

Community saint

Hi Chris ;)

Browser is the latest brew of mozilla firefox.
Most of the text and tables were imported from M$WORD 2003 (11.6568.6568) SP2, part of M$OFFICE Professional Edition 2003.
(Cut and paste).

Can't really say the editor "fails".
In fact the result is nearly perfect, and the fact that it can import complex tables from Word is a HUGE time saver.

You can see it here
it's in the first hidden text block (Drilling advanced aircraft  structures with PCD drills)

What it does is add lines, and put some text blocks in superscript.
Open it to edit. Remove the extra lines. Preview the thing and there you have the extra lines back again, both on the preview screen AND in the editor window where you just removed them. And it will keep adding lines and returning the blocks in superscript eachand every time you hit edit or preview.

 

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34499
Avatar

Hi,

Thanks for those details. I've tracked down the line-break problem, and that'll be fixed in the next patch release (due soon).

The superscript problem isn't actually as seems. The text really is superscript in the document- it looks like the author has used it as a substitute for setting a smaller font size. When ocPortal optimises Word documents, it reorganises how text sizes are set (because Word documents are a really mess internally) - this is a lossy process. It's not that the text is becoming superscript, it's that the text is getting smaller and remaining superscript.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34501
Avatar

Community saint

Thanks, i'll wait for the patch then.  :thumbs:

Just looked at the word doc I got the text and tables from. Checked every line. It's all normal text, no superscript except for references.
Doc is attached.
On the web page, superscript starts just after graph 7 and goes on till the end. Found nothing on the original word doc that could justify this.
Also, if you look at the web page, you can see the 3 other boxes below this one. They are in superscript also.
I had type these

Code

[box type=curved][hide="Precorp Tooling Solutions For Drilling CFRP/Ti Advanced Composite Stack Material"]bla bla[/hide][/box]
[box type=curved][hide="Precorp: Cutting Tool Solutions Provider"]bla bla[/hide][/box]
[box type=curved][hide="UM Test Report: Carbon fiber drilling test"]bla bla[/hide][/box]
BEFORE starting to copy and paste text from the word doc. (and they displayed ok on the page).

Very strange…

 



Last edit: by moimaim

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34507
Avatar

I'm not sure about this without further research, but there's a relatively quick workaround. When in the editor, click the HTML-source button. This will show the HTML for the editor rather than the WYSIWYG interface. Copy and paste it all into Windows notepad. Do a search and replace to replace <sup> with blank; do the same for </sup>. Copy and paste it back from notepad and into the HTML source. Click the HTML-source button again.
That should erase any superscript in the editor and I'd be extremely surprised if it came back.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34510
Avatar

Community saint

Hi Chris,

In my case the browser is the latest safari.

The member didn't cut and paste anything as the "enable WYSIWYG" function would not open. I think this is a browser problem having to do with pop-up blocking. I loaded safari on my machine and got a similar result…except the enable function did not even appear. Neither did the add topic button in the forum.

I always use the editor with the WYSIWYG disabled…I want to see what code is there.  :)

It works fine for me in firefox and IE (latest versions)
Back to the top
 
Posted
Rating:
#34511
Avatar

Community saint

Thx Chris, i'll try and keep you posted  ;)

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34512
Avatar

The member didn't cut and paste anything as the "enable WYSIWYG" function would not open.

There was a bug in a prior version that caused the editor to load in Safari, when it should have been disabled (as you've seen it with the test you just ran).
Unfortunately Safari isn't yet supported by the editor component that we use.

Neither did the add topic button in the forum.

I think this is a false lead, caused by you not being logged in in Safari.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34515
Avatar

Community saint

Chris Graham said

Do a search and replace to replace <sup> with blank; do the same for </sup>. Copy and paste it back from notepad and into the HTML source. Click the HTML-source button again.
That should erase any superscript in the editor and I'd be extremely surprised if it came back.
Did that, removed them all, previewed, nothing had changed. Still in superscript from graph 7 onwards.
Had another look, and found this:  <sup /> not too far from where the superscript started. Wonder how it got there. Deleted it, and now everything is ok.
Thx for the tip

Back to the extra lines,
still have heaps of text to add in there, would it be better if I copy and paste from wordpad or context instead of M$word ?


www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#34517
Avatar

There's now a bug fix filed for this:
ocPortal &ndash; Entry: WYSIWYG editor line-spacing


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: