Giter Site home page Giter Site logo

bbp-live-preview's People

Contributors

r-a-y avatar sprightly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bbp-live-preview's Issues

Update problem

The preview ramdomly update itself when editing the textarea
The refresh time seams to be long...

Switching between 'Write' and 'Preview'

Hi @r-a-y

Here, on github.com, there is the handy switcher between the 'Write' and 'Preview' modes. Don't you plan to apply the same tabs in your plugin? Sometimes it's handier to switch to preview rather than having the ajax loader beneath the textarea.

Thanks.

please update

it does not work now, please update.

BTW, is there a setting page at backend?

Alex

Preview does not show HTML formatting for non-admin users

@r-a-y thanks for this plugin it has been a life saver! I enabled tinymce type code in bbpress by writing a very basic plugin based on code from the bbpress forums. This allowed my non-admin users to use formatting such as red text, etc in their posts.

When an admin creates a post, the preview shows the HTML formatting. When a non-admin tries it, things like bold, italic, underline will show, but any apostrophes show a slash before hand, and no colours carry over.

I am guessing this is some kind of security thing? If there is a way to have non admins access this it would be great.

As an aside, here is the code from the plugin (I am not a dev at all, so perhaps this is relevant or not at all):

`<?php
/*
Plugin Name: Easyily Enable TinyMCE for bbpress
Plugin URI: http://cloudmasterstudios.com/plugins/
Description: a plugin to easily enable TinyMCE in bbpress
Version: 1.0
Author: Rodolfo Martinez
Author URI: http://cloudmasterstudios.com
License: GPL2
*/

/* Copyright 2017 Rodolfo Martinez (email : [email protected])
Easily Enable TinyMCE for bbpress is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.

Easily Enable TinyMCE for bbpress is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Easily Enable TinyMCE for bbpress. If not, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.
*/

add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
function ntwb_bbpress_custom_kses_allowed_tags() {
return array(
// Links
'a' => array(
'class' => true,
'href' => true,
'title' => true,
'rel' => true,
'class' => true,
'target' => true,
),
// Quotes
'blockquote' => array(
'cite' => true,
),

	// Div
	'div' => array(
		'class'     => true,
	),
	
	// Span
	'span'             => array(
		'class'     => true,
                    'style'     => true,
	),
	
            // Paragraph
	'p'             => array(
		'class'     => true,
                    'style'     => true,
	),

	// Code
	'code'       => array(),
	'pre'        => array(
		'class'  => true,
	),
	// Formatting
	'em'         => array(),
	'strong'     => array(),
	'del'        => array(
		'datetime' => true,
	),
	// Lists
	'ul'         => array(),
	'ol'         => array(
		'start'    => true,
	),
	'li'         => array(),
	// Images
	'img'        => array(
		'class'    => true,
		'src'      => true,
		'border'   => true,
		'alt'      => true,
		'height'   => true,
		'width'    => true,
	),
	// Tables
	'table'      => array(
		'align'    => true,
		'bgcolor'  => true,
		'border'   => true,
	),
	'tbody'      => array(
		'align'    => true,
		'valign'   => true,
	),
	'td'         => array(
		'align'    => true,
		'valign'   => true,
	),
	'tfoot'      => array(
		'align'    => true,
		'valign'   => true,
	),
	'th'         => array(
		'align'    => true,
		'valign'   => true,
	),
	'thead'      => array(
		'align'    => true,
		'valign'   => true,
	),
	'tr'         => array(
		'align'    => true,
		'valign'   => true,
	)
);

}

?>`

Autoembeds are not shown

Hi @r-a-y

Seems that the autoembeds functionality doesn't work with the latest version of BuddyPress. I tried with bbPress 2.5.12 and 2.6.beta-2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.