Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: keyboard on January 14, 2022, 06:14:25 PM

Title: Rich Text Format
Post by: keyboard on January 14, 2022, 06:14:25 PM
Hi

Is there any reason why I cannot paste rich text into SMF? I can paste rich text into other Apps except SMF.... I know that I can edit the text to show rich text

Please advise
Ron

Title: Re: Rich Text Format
Post by: Arantor on January 14, 2022, 06:25:44 PM
If you use the WYSIWYG editor, it will sort of do rich text posting - but it's very, very buggy and generally unrecommended. It's better in 2.1 though because it has a whole new editor.

In general rich text posting onto web apps is very variable and likely to break in some way no matter whatever application you try it in.
Title: Re: Rich Text Format
Post by: keyboard on January 14, 2022, 06:30:38 PM
Thanks...
Title: Re: Rich Text Format
Post by: Kindred on January 15, 2022, 09:37:29 AM
Also, you need to make sure your smf is using utf8
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 10:30:20 AM
Quote from: Kindred on January 15, 2022, 09:37:29 AMAlso, you need to make sure your smf is using utf8

Please tell me where I can find this......
Title: Re: Rich Text Format
Post by: Arantor on January 16, 2022, 11:08:20 AM
If you're using 2.0, it doesn't install as UTF-8 by default, which means going into the maintenance area in the admin panel and using the convert option (take a backup first!!!!)

If you're using 2.1, it will have either installed as UTF-8 or if you upgraded from 2.0, it would perform the conversion for you, so on 2.1 where the better editor is, you'll already be on UTF-8.

(This site uses 2.1 in case it's not clear.)
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 02:26:23 PM
Quote from: Arantor on January 16, 2022, 11:08:20 AMIf you're using 2.0, it doesn't install as UTF-8 by default, which means going into the maintenance area in the admin panel and using the convert option (take a backup first!!!!)

If you're using 2.1, it will have either installed as UTF-8 or if you upgraded from 2.0, it would perform the conversion for you, so on 2.1 where the better editor is, you'll already be on UTF-8.

(This site uses 2.1 in case it's not clear.)

I have successfully converted with no errors but I still can't import Rich Text.........Bummer !!!!
Title: Re: Rich Text Format
Post by: Arantor on January 16, 2022, 02:36:22 PM
Well, did you switch to rich text mode?

Did you try it here for example?
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 03:07:48 PM
Quote from: Arantor on January 16, 2022, 02:36:22 PMWell, did you switch to rich text mode?

Please direct me to the switch.
Title: Re: Rich Text Format
Post by: Arantor on January 16, 2022, 03:36:09 PM
For 2.0...

wysiwyg.PNG as indicated by the blue arrow (I can't draw, sorry)
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 04:09:38 PM
Screen Shot 2022-01-16 at 4.05.14 PM.jpg

Test One Two Three


This is what I get
Title: Re: Rich Text Format
Post by: Arantor on January 16, 2022, 04:11:26 PM
Well, I'm not quite sure what you hoped you'd get. It's a WYSIWYG editor that can handle *some* rich formatting.

You also didn't make it clear what you were trying to add into it, so I have no way to know whether what you want to do is even possible in the editor, or indeed whether it's possible in the 2.1 editor which isn't a decade old and abandoned...
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 04:16:46 PM
What I am trying to do, is to create a rich text document (Outside SMF) and then when the need arises, I just copy & paste into SMF.

Appreciate your time & expertise
Title: Re: Rich Text Format
Post by: Arantor on January 16, 2022, 04:19:24 PM
Yes, but what's *in* that document? What formatting are you hoping to produce and just *use* inside SMF?

SMF doesn't support arbitrary styling (no forum platform does), so whatever formatting you're going to use has to work with how the forum itself works. If you're trying to do pictures for example, the pictures need to be online in 2.0, you can't really use pictures from a text document embedded in the document without putting them online somewhere. (And out of the box there's no nice way to use attachments inside a post.)
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 04:26:55 PM
This what I would like to paste

Screen Shot 2022-01-16 at 4.25.43 PM.jpg
Title: Re: Rich Text Format
Post by: Sir Osis of Liver on January 16, 2022, 05:22:46 PM
You mean LIKE THIS?
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 05:32:46 PM
Please do me a favour....... Create a rich text outside of SMF ( don't format in the SMF editor) and copy & paste in the same message and tell me if you were successful....
Title: Re: Rich Text Format
Post by: Sir Osis of Liver on January 16, 2022, 05:36:49 PM
You mean LIKE THIS?

No, formatting is lost.  Why don't you just use the bbc tags?
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 05:38:21 PM
Testing.  This works well in SMF when using the editor ...... but what I want to do, is create rich text outside SMF and then copy & paste into an SMF message...
Title: Re: Rich Text Format
Post by: Sir Osis of Liver on January 16, 2022, 05:41:26 PM
No, doesn't work.  RTF formatting is lost if copied into reply editor.
Title: Re: Rich Text Format
Post by: keyboard on January 16, 2022, 05:47:48 PM
Brilliant !!!!!!!  bbc tags !!!!!

I can make that work


Many,many thanks
Ron
Title: Re: Rich Text Format
Post by: Sir Osis of Liver on January 16, 2022, 05:54:34 PM
Well, yes, that's what the formatting buttons in the reply editor do, add bbc tags.  You can manually add the tags in any text editor (I routinely do that in Wordpad) and copy the text into the editor.
Title: Re: Rich Text Format
Post by: Steve on January 16, 2022, 06:08:12 PM
Marking solved then. If you have further questions then, by all means, mark this unsolved and ask away. :)