GithubHelp home page GithubHelp logo

Comments (10)

steveathon avatar steveathon commented on May 20, 2024

This does appear to be a bug - not sure why it's breaking but let us look into it.

from bootstrap-wysiwyg.

PallasDoesCode avatar PallasDoesCode commented on May 20, 2024

I have just tested both situations you mentioned. In each test I conducted the editor performed normally. During the first scenario, after I clicked the italics button the text contained both bold and italics formatting. When I tried the second scenario, the bold formatting was removed after pressing the bold button a second time.

I am using the following browsers:

Internet Explorer: 11.0.9600.17842
Firefox: 38.0.5
Google Chrome: 43.0.2357.124

from bootstrap-wysiwyg.

Voyteck avatar Voyteck commented on May 20, 2024

Hi Tyler,
You can check this bug on the following address:
http://test.myfirstmail.co.uk/ui/child/new_message.php
The third control from the top is the editor styled using Materialized framework.
I just retested that and the bug still appears there.

If you could give me any hints on how to avoid that if this is some kind of my mistake - I would be even more that grateful :)

from bootstrap-wysiwyg.

PallasDoesCode avatar PallasDoesCode commented on May 20, 2024

I just tested your page using the same three browser versions mentioned above and I encountered no issues. Everything worked just like it should.

What browser are you using? What version of it do you have installed?

from bootstrap-wysiwyg.

Voyteck avatar Voyteck commented on May 20, 2024

Chrome 43.0.2357.124 m

The clue is that you need to click add some text, then after being at the end of the text (nothing selected - just a cursor blinking) click "B" icon (--> it will turn to Bold and icon will get enabled) and then immediatelly click "B" icon again (--> it is not changing back to disabled)...

EDIT: same thing on IE 11.0.9600.17842

OS: Windows 8.1, Polish version

from bootstrap-wysiwyg.

PallasDoesCode avatar PallasDoesCode commented on May 20, 2024

Ok let me just make sure I understand this.

First I type something into the textbox (last textbox on the page). Then with my cursor at the end of the word I click the bold button?

Is that right? Are you not highlighting the text before clicking the bold button?

from bootstrap-wysiwyg.

Voyteck avatar Voyteck commented on May 20, 2024

Exactly...Without highlighting anything you Bold and then without doing anything else - click Bold again...
Normally Bold should disable on the second click, but it does not...

from bootstrap-wysiwyg.

PallasDoesCode avatar PallasDoesCode commented on May 20, 2024

I believe the reason nothing is happening is because nothing is highlighted. The editor applies the formatting to what you have selected. If you highlight the text first then click the button it should work correctly.

What we might need to do is verify that the user has actually selected some text before doing anything. That way the button doesn't act like something should have changed.

from bootstrap-wysiwyg.

PallasDoesCode avatar PallasDoesCode commented on May 20, 2024

@voyteck0 I have been working on fixing some of the reported issues over the past couple months. Could you try testing this again using the latest code found in the 2.0-dev branch? That code has not been released yet but it is the latest version and I believe will work for you.

from bootstrap-wysiwyg.

spreadred avatar spreadred commented on May 20, 2024

It works properly if you select text. If you do not select text, it still exhibits the behavior described in the initial bug report.

Steps to reproduce:

  1. type some text
  2. do not select any text
  3. click bold (it should now be selected / blue)
  4. click italic (bold button is now deselected, italics is now selected)
  5. type some text

Expected behavior:
Both the Bold and Italic icons should be selected/highlighted/blue
Text typed after selecting both bold and italic should be both bold and italic

Actual behavior:
Only the Italic icon is selected
Text typed after selecting both is just italic

from bootstrap-wysiwyg.

Related Issues (20)

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.