SMF Support > SMF 2.0.x Support

WYSIWIG & gt - lt tag toggle

(1/1)

arfa:
I saw an option "disable WYSIWIG" - the default is unchecked.
I tried it checked but saw no change in either new-topic or reply.

There were a couple of referenced in code - eg. in Post.template
        // Handle the WYSIWYG editor.

Is there a built-in option for a WYSWIG editor?
_________________
Otherwise...
I have been modding my standard editor and have it working and saving fine but...

Where do I disable the replacement of L&R angle brackets with lt & gt?
I am sure it is just one or two preg_replace someplace - but, do you think I can find it/them?
  No.

BTW - this is for an invitation only members forum so security is not really an issue here.

thanks - AK

MrPhil:
Even if you have WYSIWYG "not disabled" (confusing!), the default is to still use BBCode (non-WYSIWYG). You have to click the WYSIWYG mode toggle ([+mouse pointer+]). In your own profile you can set WYSIWYG to be your default mode (per-user basis).

< and > are converted to entities to prevent HTML from being directly used (except when "basic HTML" is enabled). Admins can use the [html] tag and a limited set of HTML can be used by anyone, if enabled. What are you trying to do?

arfa:
thx MrPhil

So, quite new to SMF.
[logged in as superUser] I look under 'Profile' and there are 3 options:
Summary
Account settings
Forum Profile ------ none of these makes mention of WYSIWIG

AND - I can't now find the 'disable WYSIWIG' (indeed that option is a bit confusing)
edit - googing about and found: Admin => Forum => Posts and Topics => but, detail lacking
Sorry, but I will need a bit more hand holding here.
EG. got to Admin > Features > Layout - then ...


--- Quote ---What am I trying to do...?
--- End quote ---
Setting up for a relatively small, invitation only forum. Most are not very code savvy so using WYSIWIG seems an easy (still far from trouble free) option.
I have got it (my fave RTF) working [still yet to get to 'edit'] but - of course - angle brackets are changed to lt and gt text.
I may get to a set of html filters but for now am happy just to bypass that conversion.
      - Where does it happen?

MrPhil:
Admin > Features & Options > Forum > Posts & Topics > Post Settings > Disable WYSIWYG editor should be unchecked to permit members to use WYSIWYG. (Why check to disable a feature?)

For each member, Profile > Forum Profile > Modify Profile > Look & Layout > Show WYSIWYG editor on post page by default to make WYSIWYG automatic. Unfortunately, I don't see any way to make that the default for everyone, unless you modify the PHP code to check that during member setup.

And yes, the admin section is not very intuitive, with names changing throughout the process (button > dropdown list, and headings, and breadcrumb navigation are not quite consistent) and different ways of doing things.

Admin > Features & Options > Forum > Posts & Topics > Bulletin Board Code > Enable basic HTML in posts will let some HTML tags be used (stops disabling selected tags). If you use something like CKEditor to insert select HTML tags (make sure they're all in the basic HTML list), that might do the job. Only the admin can use unlimited HTML tags, anyway, and only when wrapped in [html] BBCode tags. If you search around this forum for CKEditor and FCKEditor, you'll probably find some discussion on how best to do it.

arfa:
a big thanks again..!
That does it nicely. I am tempted to persist with my own editor but - why reinvent the wheel?

The main thing missing for me is highlight. Glow pretty almost does it but nothing beats a nice garish yellow background. Other colours for other people/things.

Searching this forum for CKEditor gives 3 results - this post as one of them  :P

Do you (anyone) have any pointers to where the buttons/code might be modified.?

Like most things new it takes a while to learn the terrain.
Thanks.

EDIT... I found this
hxxp://custom.simplemachines.org/mods/index.php?action=parse;mod=2065;attach=140603;smf_version=2.0_RC3
which looks very thorough. Just a matter of learning the land... every country new and interesting. :)

Navigation

[0] Message Index

Go to full version