Forum Activity for @ultrajam

SteveX
@ultrajam
11/16/14 09:07:12AM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

Ok, I'll email those. There are quite a few - I hope the purifyer can accept data-* and aria-* attribute wildcards... but I couldn't see how in their docs.

I've been trying to add them via a html_purifier_listener, but get an error in the log saying "Cannot set directive after finalization invoked... "

I can see my section and button tags in the array when I call $_data->get('HTML.AllowedElements'), yet they are still being stripped out.
SteveX
@ultrajam
11/16/14 03:41:11AM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

I was trying with the button element, but a link with classes would do the same thing.
<!-- Standard button -->
<button type="button" class="btn btn-default">Default</button>

But what I am aiming to do is to add most bootstrap 3 elements and components via the TinyMCE templates button.

I don't need the form elements, but classes will be needed for styling, and other attributes for validation.
SteveX
@ultrajam
11/15/14 12:09:42PM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

Also, adding a link with a class, the link is saved but the class is stripped out.
SteveX
@ultrajam
11/15/14 12:06:28PM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

Yes, that does fix it, thanks Brian.

I'm probably missing a step somewhere, but I can't get a button to save in the editor. I have added "button" to the list of Allowed Html Tags for the quota, but it is being stripped out on saving the form. I also tried adding "section" but that is stripped out as well.

Are there limits as to what can be added to Allowed Html Tags or am I missing a step?

Thanks
SteveX
@ultrajam
11/15/14 04:46:19AM
2,589 posts

Jamroom.net search results


Using Jamroom

Hi Michael, theres another astray here:
https://www.jamroom.net/profile/p=6
profile-listings.png profile-listings.png - 166KB

updated by @ultrajam: 11/15/14 04:46:45AM
SteveX
@ultrajam
11/14/14 06:01:44PM
2,589 posts

Jamroom.net search results


Using Jamroom

Search results on jamroom.net currently look a little out of line on Firefox on a laptop:
https://www.jamroom.net/search/results/all/1/4?search_string=ning
updated by @ultrajam: 01/08/15 01:19:23PM
SteveX
@ultrajam
11/14/14 04:47:39PM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

In the page:
in-the-page.png in-the-page.png - 56KB

updated by @ultrajam: 11/14/14 04:47:54PM
SteveX
@ultrajam
11/14/14 04:47:09PM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

In the editor:
in-the-tinymce-window.png in-the-tinymce-window.png - 76KB

updated by @ultrajam: 11/14/14 04:47:27PM
SteveX
@ultrajam
11/14/14 04:46:50PM
2,589 posts

TinyMCE paragraph formatting


Using Jamroom

In the editor, it looks like when I press return to start a new line, it isn't acting like a return should.

For example, if I use the Paragraph dropdown to change a line to a h3, then hit return and start typing on a new line, that new line is also an h3.

If I then try to change that second line to a paragraph, the h3 in the line above also becomes a paragraph.

It does work if I paste a bunch of text into the editor and then put the cursor into one of the lines and then change that line to an h3, so whatever the problem is is connected to the behaviour of the return rather than the line.

In the html view in the editor, the h3 isn't being closed, the line breaks are converted to br tags, so the h3 continues and there is no way to stop it without editing the html - easily done if you know how, but not simple for the average TinyMCE user.

Also, there is a great difference between the heading/paragraph formatting between the layout in the editor and in the final page view - but I suspect that this may be part of the same problem. The perpetual joys of TinyMCE line breaks.

updated by @ultrajam: 12/19/14 02:14:20PM
SteveX
@ultrajam
11/14/14 04:25:05PM
2,589 posts

More than one tinymce field possible?


Using Jamroom

25 minutes into the weekend and it looks good from here Brian, editor works well as a section type in a jrDocs-based module on first attempt. But I have spotted a problem with the way TinyMCE new lines are working with formatting using the paragraph menu dropdown.

I'll start a new thread on that.
updated by @ultrajam: 11/14/14 04:25:49PM
  125