Giter Site home page Giter Site logo

wysibb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wysibb's Issues

Disable debug logger

Since version 1.4.1 I can't disable logging by this code

var opt = {
   debug:false
}
$('#editor').wysibb(opt);

Instead, I have to change original script, like this

wbbdebug=false;

I think, it should be nice to return 'debug' option.

поддержка ios

редактор на странице http://www.wysibb.com/demo/ не работает на iPhone iOS 5.
редактирование WYSIWYG невозможно из-за ограничений ОС, а автоматически не переходит в BBCode режим.

Баг при использовании insertAtCursor

$("#full_content").insertAtCursor('[img]img.jpg[/img]');

В редакторе появляется просто ббкод, было бы класно, если бы он сразу парсился и в редакторе появлялась картинка.

пробовал
$("#full_content").insertAtCursor('[img]img.jpg[/img]').sync();
также пробовал вставлять через append() в textarea, а потом sync() - не появлялось вообще ничего.

Bugged cfg bbmode

After some time of using wysibb 1.5.1 on my project i found some issue: if enabled bbmode property, textarea with editor can "cleanup" writed text, if you click on [bbcode] button.
All working fine, if this option is dissabled.
How to repeat bug?

  • Enable option bbmode (set true)
  • Write some text in textarea with editor
  • Click to [bbcode] button

I hope you fix this in newest versions.

Spoiler option missing in v1.3.4

Hi,

i just tried to add a spoiler option but it doesn't work, can you help me ?

spoiler: {
title:CURLANG.spoiler,
buttonHTML: '\uE018',
excmd: 'spoiler',
transform: {
'

{SELTEXT}
':'[spoiler]{SELTEXT}[/spoiler]'
}
},

It world in bbcode mode, but in the wysiwig mode, nothing heppen (and no error is triggered)..

Can you help me ?

Embed video

Error when post embed video. When click Save, nothing happens.

Get clean code

How can I get only code written in the editor? because when it is generated, receives a code <span wbb="wbbid_XX" > and another <span> empty. Except that when I ask to see the code, and then sending the <span> not exist but that is desired.

1
2

$ is not a function

Ошибка при нажатии на кнопку "Загрузить файл" в модальном окне.
Пожалуйста не используйте $ в onclick - это приводит к ошибкам например в Drupal 7, где нужно обращаться к jQuery как jQuery() или через переменную jQuery.noConflict(), если нужна версия выше доступной.
А лучше бы вообще не использовать onclick, тогда бы и проблемы не было.

таблицы

При добавлении таблицы в режиме html таблица отображается но после просмотра bbcode исчезает так как в ббкод переносится только td

[enhancement] Add missing bower.json.

Hey, maintainer(s) of wbb/WysiBB!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library wbb/WysiBB is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "wbb/WysiBB",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Quoting a quote

I'm using the Multiformat BBcode from the docs on the website, but when i want to quote a quote, the original quote isn't being quoted.

xss

Xss injection possible

[img]bb.jpg" onerror="alert(location)[/img]

Сайт и Форум

Форум не работает, сайт тоже не понятно как-то работает.

Right Click Bugs

I was messing with my Chrome developer tools and while I right clicked on the buttons it may have caused a click race condition of some sort.

wysibb-bug

It's also doing some other weird things when you right click on the buttons such as the image one will bring up the dialog with the symbol  inside the first input.
wysibb-bug-modal

When I right click on the quote button it does some strange things as well. As you can see the quote button had doubled in width as well.
wysibb-bug-artifacts

I then attempted to click other options and it seems as though the width of the code and quote button get wider as I click on it.
wysibb-bug-others

This is a great plugin if a user doesn't right click on the options :P. I'm digging in the code and will try to see if I can find a solution. I think the best solution is to prevent the right click from executing an event it shouldn't be. I will try this out.

Bug found on:
Mac OS X 10.9.3 MBP
Browser: Google Chrome Version 35.0.1916.153

Non standart [list] bbcode

Many forums uses [list] bbcode like this

[list]
[*]one
[*]two
[list]

But wysibb uses a close tag, like this

[list]
[*]one[/*]
[*]two[/*]
[list]

I was trying to implement the standart way, but i failed. This bbcode doesn't work correctly

numlist : {
  title: CURLANG.numlist,
  buttonHTML: '<span class="fonticon ve-tlb-numlist1">\uE00a</span>',
  excmd: 'insertOrderedList',
  transform : {
    '<ol>{SELTEXT}</ol>':"[list=1]{SELTEXT}[/list]",
    '<li>{SELTEXT}</li>':"[*]{SELTEXT}"
  }
},

SELECT

При добавлении в wbbOpt

format: {
type: 'select',
title: 'Форматирование',
options: "paragraph"
},
paragraph: {
title: 'Параграф',
buttonText: "paragraph1",
excmd: 'format',
exvalue: "1",
transform: {
'

{SELTEXT}

':'[p]{SELTEXT}[/p]'
}
}

появляется выпадающий список, если выделить текст и нажать в списке "параграф" то в режиме html ничего не сработает, а в bb режиме нормально добавляется.

UnorderedList missing close tag

I think that there is a missing closing tag in this code:

bullist : {
title: CURLANG.bullist,
buttonHTML: '',
excmd: 'insertUnorderedList',
transform : {
'

    {SELTEXT}
':"[list]{SELTEXT}[/list]",
'
  • {SELTEXT}
  • ':"[*]{SELTEXT}"
    }
    },

    I think that this code should be replaced with

    bullist : {
    title: CURLANG.bullist,
    buttonHTML: '',
    excmd: 'insertUnorderedList',
    transform : {
    '

      {SELTEXT}
    ':"[list]{SELTEXT}[/list]",
    '
  • {SELTEXT}
  • ':"[]{SELTEXT}[/]"
    }
    },

    This missing close tag made a strange bug when document direction is RTL .

    double quote

    error on double quote for punbb.
    try this to post.
    [quote]tes[quote]ter[/quote][/quote]

    affter im post, the code html for preview will work, but if im edit again the code quote was missing.
    T__T

    В бб код вставляется непонятный символ после td.

    Не безопасно сохранять сразу html в базу, по этому я решил брать bb код и парсить его, всё работает нормально кроме одной вещи: после bb тега [td] редактор вставляет не читаемый символ, который сохраняется как (?).
    Скриншот: http://s3.postimg.org/5z4dp84pv/image.png

    Mobile devices support.

    Please, add mobile devices support.
    Tested on iPad 3, iPod 5gen, Android 4.1. All tests failed.

    Не совместимость тега fontsize и fontface

    Если для текста задать какой либо размер текста а потом внутри этого текста изменить шрифт то после вкл/выкл BBCode режима fontface становиться частью текста и не влияет на отображение

    Image size editing

    Is there a way to edit image size in the editor? Is it too difficult to implement that?

    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.